theKashey / react-focus-on

🎯 Solution for WAI ARIA compatible modal dialogs or full-screen tasks, you were looking for
MIT License
336 stars 14 forks source link

Tabbing in radio buttons are broken in FocusOn #35

Closed sebpettersson closed 4 years ago

sebpettersson commented 4 years ago

When using a radio button group inside FocusOn, keyboard tabbing is broken. When the focus is on a radio button the focus get "stuck" and doesn't move to the next element when pressing tab.

In the test case below, when the focus trap is enabled:

Compare it to the second example with checkboxes which work correctly.

Test case

theKashey commented 4 years ago

Yeah, there is a special logic for radio buttons (they are a bit special), which is probably got broken a bit.

theKashey commented 4 years ago

Related https://github.com/theKashey/react-focus-lock/issues/103

theKashey commented 4 years ago

Fixed in v3.4.1