Skip to content

React 19: inert: '' on the more-link probe logs a warning and leaves it non-inert #8114

Closed

Description

@ovelilla

Reduced Test Case

No hosted demo: the bug is visible directly in the source (see permalinks below) and reproduces with any @fullcalendar/react 7.1.0 + React 19 setup that renders a dayGrid or timeGrid view with dayMaxEvents / eventMaxStack enabled (so the "more link" probe is rendered):

import FullCalendar from '@fullcalendar/react'
import dayGridPlugin from '@fullcalendar/react/daygrid'

export default function App() {
  return <FullCalendar plugins={[dayGridPlugin]} initialView="dayGridMonth" dayMaxEvents />
}

Which connector are you using (React/Angular/etc)?

React (@fullcalendar/react 7.1.0, react / react-dom 19.3.0)

Bug Description

The offscreen MoreLinkTrigger probe is rendered with inert: '':

In Preact an empty string sets the attribute, so this works there. But the same code ships in @fullcalendar/react, and React 19 treats inert as a boolean prop, where '' means false.

Expected: the probe element gets the inert attribute and no console warning is logged.

Actual:

  1. React 19 logs in development:

    Received an empty string for a boolean attribute inert. This will treat the attribute as if it were false. Either pass false to silence this warning, or pass true if you used an empty string in earlier versions of React to indicate this attribute is true.

  2. The inert attribute is not set, so the offscreen probe is not inert (only aria-hidden), and its link can receive keyboard focus.

Suggested fix: use inert: true in both places. Preact also accepts true for inert, so it should be safe for every connector. We are currently applying exactly this change with patch-package to the compiled chunks of @fullcalendar/react 7.1.0 and it resolves both symptoms.

Activity

  1. added a commit that references this issue on Oct 3, 2026
    c198059
  2. arshaw commented on Oct 6, 2026

    @arshaw
    Member

    This has been fixed in v7.1.1. The warning should be gone. Please confirm when you get a chance

  3. ovelilla commented on Oct 6, 2026

    @ovelilla
    Author

    Confirmed, thanks! On v7.1.1 with React 19 the warning is gone, and the offscreen +more probe now renders with aria-hidden="true" and inert set (el.inert === true) in the dayGridMonth view with dayMaxEvents: true. We've dropped our local patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions