Skip to content

Set inert to true on the more-link probe (React 19) - #8115

Closed
ovelilla wants to merge 1 commit into
fullcalendar:mainfrom
ovelilla:fix-more-link-probe-inert
Closed

ovelilla wants to merge 1 commit into
fullcalendar:mainfrom
ovelilla:fix-more-link-probe-inert

Conversation

@ovelilla

@ovelilla ovelilla commented Oct 3, 2026

Copy link
Copy Markdown

Fixes #8114

The offscreen MoreLinkTrigger probe in DayGridRows and TimeGridAllDayLane is rendered with inert: ''. Preact sets the attribute for an empty string, but React 19 treats inert as a boolean prop where '' means false, so with @fullcalendar/react:

  • React logs "Received an empty string for a boolean attribute inert" in development.
  • The attribute is not set, so the probe is only aria-hidden and its link can receive keyboard focus.

This changes both places to inert: true, which Preact also renders as the inert attribute, so it is safe for every connector. We have been running this exact change via patch-package on the compiled @fullcalendar/react 7.1.0 chunks, and it resolves both symptoms.

🤖 Generated with Claude Code

React 19 treats `inert` as a boolean prop, so `inert: ''` is read as
false: it logs a dev warning and the offscreen probe is left focusable.
Preact accepts `true` as well, so this is safe for every connector.

Fixes fullcalendar#8114

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@arshaw

arshaw commented Oct 6, 2026

Copy link
Copy Markdown
Member

hi @ovelilla , see my comment here #8114 (comment) about this being implemented in v7.1.1

Btw, in order to get this to work for React 18 and 17, which we still support, we needed to use a slightly different technique. So closing this PR.

@arshaw arshaw closed this Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants