`RadioGroup` tab behavior incorrect when using `useFocusableGroup`
Open
@ling1726 is already working on this.
Since Jun 2, 2022.
bug
- Dominant language
- TypeScript
- Stars
- 165
- Forks
- 42
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 9
Description
Expected Behavior
When using Fluent UI v9 RadioGroup with react-tabster's useFocusableGroup RadioGroup native tabbing and keyboard behavior should be preserved.
Observed Behavior
When using useFocusableGroup with RadioGroup the native tabbing and keyboard behavior is overridden in unexpected ways.
In particular, with Tabster:
- Each option in
RadioGroupis a tab stop (i.e., tab presses move between the options) when theRadioGroupshould be a single tab stop.- Options are only supposed to be navigable with the arrow keys when using the keyboard. Arrow keys still work with Tabster.
- When
RadioGrouphas a selected option tabbing or shift-tabbing to theRadioGroupfrom a different focusable element focuses the first or last option in theRadioGrouprespectively. It should focus the selected option.
Example
Related Issues
Fluent UI v8's ChoiceGroup had a similar issue with FocusTrapZone.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.