-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[material-ui][Switch] Not focusing as the next element in tab index #40864
Comments
Hey @berenicestr, thanks for the report I cannot access the code sandbox; apparently, it is not public. May I ask you to update it? Maybe you find it easier to use Stackblitz, as codesandbox recently restricted their usage limits |
Sorry Diego. I share an example in Stackblitz: https://stackblitz.com/edit/react-ujnl8h?file=Demo.tsx |
Thanks for the example! I don't understand what's the bug though, I can tab through the switch component correctly: Screen.Recording.2024-02-09.at.14.21.06.mov |
Thank you so much for you response! I see your video it’s the functionality OK! I have tested with bowsers: IE - OK, Firefox, OK, Chrome OK. ¿So, is perhaps a bug of this browsers? Thanks in advance for your support! |
I can confirm a weird behavior in Safari, thanks! Screen.Recording.2024-02-09.at.16.54.17.movI am accepting as a bug. I think this should be solved when refactoring the component to build it on top of Base UI, so I'm adding it to that milestone as well. |
Excellent! Thank you so much! |
The switch component doesn’t focus as the next element in tab index.
I have tried with the tabIndex and autoFocus props and doesn’t solve it. I use the lastest version of dependencies.
Code: https://stackblitz.com/edit/react-ujnl8h?file=Demo.tsx
Originally posted by @berenicestr in #37753 (comment)
Search keywords:
The text was updated successfully, but these errors were encountered: