This bug can be found using the following steps (reproducible in the storybook for groupper):
tab to the focus group container
hit enter to reach the first focusable button
click outside the focus group to move focus outside of it
tab back to the focus group, and observe that tab reaches the inner buttons & is then trapped within the group without needing to hit enter again
The desired behavior would be that if focus leaves a focus group without using Escape (e.g. through clicking elsewhere, using a screen reader's virtual cursor, or mixing modes in any of several other ATs), the focus group state is reset and the user would need to hit enter again to reach inner items if the tabability is set to limited or limited-tab-focus.
This bug can be found using the following steps (reproducible in the storybook for groupper):
The desired behavior would be that if focus leaves a focus group without using
Escape
(e.g. through clicking elsewhere, using a screen reader's virtual cursor, or mixing modes in any of several other ATs), the focus group state is reset and the user would need to hit enter again to reach inner items if the tabability is set tolimited
orlimited-tab-focus
.