Skip to content
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/react-switch] tabIndex prop is not propagated to inner <input> #1016

Open
PsiRadish opened this issue Nov 22, 2019 · 0 comments
Open

Comments

@PsiRadish
Copy link

When setting tabIndex on a Switch, in the final rendered DOM the tabindex attribute ends up being placed on the outer-most div.mdc-switch, instead of the inner input element it needs to be on to have any effect. This makes it kind of impossible (without getting hacky) to set the tab order for a Switch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant