Description
🐛 Bug Report
When FocusScope
contains a fieldset with <input type="radio">
(ie. a radio button group), the native keyboard tab behavior breaks.
🤔 Expected Behavior
When you're focused within the radio group, tab
should focus to the next focusable element outside of the radio group.
😯 Current Behavior
tab
brings you to the next option within the radio group.
(Note: the up and down arrow keys still work as expected)
💁 Possible Solution
n/a
🔦 Context
We're using this within a custom built modal (not using the useModalOverlay
hook) so I'm unsure if this is happening with that hook as well.
This is fairly minor considering the up and down arrow keys still work as expected and the selections can be made, but breaking native behavior seems like something that should be looked into.
💻 Code Sample
Code sandbox recreating the bug: https://codesandbox.io/s/kind-shadow-3mqv03?file=/src/App.js
🌍 Your Environment
Software | Version(s) |
---|---|
@react-aria/focus | 3.10.0 |
Chrome | 108.0.5359.124 |
macOS | Monterey 12.4 |
React | 17.0.2 |
🧢 Your Company/Team
n/a
🕷 Tracking Issue (optional)
n/a
Metadata
Metadata
Assignees
Labels
Type
Projects
Status