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

Restorer relies on focusout event firing when element is removed #305

Closed
smhigley opened this issue Sep 14, 2023 · 1 comment · Fixed by #306
Closed

Restorer relies on focusout event firing when element is removed #305

smhigley opened this issue Sep 14, 2023 · 1 comment · Fixed by #306
Assignees

Comments

@smhigley
Copy link
Contributor

Safari does not fire focusout or any other events when a node is removed, which means focus isn't restored when the restorer source is unmounted, even though focus returns to the body.

This can be reproduced in the Restorer stories in Safari, and also in FUI in components with popups (e.g. Popover, Dialog, Menu, etc.).

@smhigley
Copy link
Contributor Author

Actually jumped the gun a little here -- the current focusout approach doesn't work in any non-Chromium browser, and the spec is unclear/currently debated as to which approach is correct.

ref:

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

Successfully merging a pull request may close this issue.

1 participant