-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Controlled ToggleGroup
sets focus to old item
#1473
Comments
Is this still relevant? @Barsnes |
yes this should still be an issue, afaik |
This is an issue in |
Good opportunity to test https://u-elements.github.io/u-elements/elements/u-tabs? |
This should have been fixed in 8a287f8 |
Resolved in #2130 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of the bug
If we have a controlled
ToggleGroup
, it will always select the wrong item when tabbing to it, if the state has changed.If we have
1
,2
,3
as items, and we have selected3
, it will set focus to that item when tabbing to theToggleGroup
.However, if we update the current value to be
2
, it will still set focus to item3
.Steps To Reproduce
Use the controlled example in storybook: https://storybook.designsystemet.no/?path=/story/felles-togglegroup--controlled
Additional Information
No response
The text was updated successfully, but these errors were encountered: