-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
<svg tabIndex="2"> doesn't work #10987
Comments
simple example where tabbing works & doesn't work depending on case https://github.com/forWorkAtML/svg-bug Note that the console does not state the error did you mean |
Thanks for confirming this issue, I've been struggling to identify the reason my svg component stopped working after the update. A component made of clickable have lost both focus and blur functionality, because "tabIndex" is rendered in the camelCase style and then ignored by the browser. I've tried adding the property "tabindex" to the tag in the jsx, but it was swallow by React and not rendered to the final component. |
React |
apologies just seeing this message now. |
See the original report in #10772 (comment).
The problem is that SVG is case sensitive, and so naïvely setting
tabIndex
and relying on insensitivity won't work with it.The good news is it seems like
tabindex
is the only valid SVG attribute with this problem. We just missed it because it applies both to HTML and SVG.I think the fix is to add it back to the whitelist.
The text was updated successfully, but these errors were encountered: