useFocusRedirect
does not handle focus leave from radio group in Popup
#2257
Labels
bug
Something isn't working
🐛 Bug Report
useFocusRedirect
does not handle focus leave from Popup when a radio group is the last element in the popupTo Reproduce
Have a Popup with radio group
https://codesandbox.io/s/focus-redirect-with-radio-group-3562q2
Open popup, move focus with Tab to radio group, move focus with Tab further
Expected Behavior
Popup is to close and focus is to move to the element following Popup trigger
Radio group behaves as it's a single focusable element, spec
Actual Results
focus leaves the document as if radio group was the last focusable element in the document (which it is)
Browser (if applicable)
FF, Chrome
Link to repl or repo (highly encouraged)
https://codesandbox.io/s/focus-redirect-with-radio-group-3562q2
Error Output
Screen.Recording.2023-06-15.at.13.02.14.mov
The text was updated successfully, but these errors were encountered: