Skip to content

fix(docs): use useFocusScope in modal example#55

Merged
zion-off merged 1 commit into
mainfrom
fix-modal-demo
Feb 26, 2026
Merged

fix(docs): use useFocusScope in modal example#55
zion-off merged 1 commit into
mainfrom
fix-modal-demo

Conversation

@zion-off
Copy link
Copy Markdown
Owner

Summary

  • The modal docs example used useFocusNode alongside a Select, creating two competing leaf focus nodes
  • The Select captured focus, so the m keybinding to open the modal never fired
  • Switched to useFocusScope + FocusScope so m bubbles up from the Select to the parent scope

…h Select

The modal example used useFocusNode alongside a Select component, creating
two competing leaf nodes. The Select captured focus, so the 'm' keybinding
on the other leaf never fired. Switching to useFocusScope lets 'm' bubble
up from the Select to the parent scope.
@zion-off zion-off merged commit f6ceec7 into main Feb 26, 2026
1 check passed
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.

1 participant