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

Focus not returned to SVGElement #3660

Open
hq-aw opened this issue Feb 25, 2025 · 0 comments
Open

Focus not returned to SVGElement #3660

hq-aw opened this issue Feb 25, 2025 · 0 comments

Comments

@hq-aw
Copy link

hq-aw commented Feb 25, 2025

Focus is not returned to focusable elements within an svg.
ie:

<svg> <a onClick={() => setIsOpen(true)} tabIndex={0} role="button" > <circle ... /> </a> </svg>

A focusable anchor within an svg is an instance of SVGElement and will be ignored here:

if (!(e.target instanceof HTMLElement)) return

Would you consider a PR to extend this check to SVGElement?

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