-
Notifications
You must be signed in to change notification settings - Fork 111
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
returnFocusOnDeactivate
not working on mobile.
#893
Comments
Does this also happen on desktop? |
(And thank you for reporting this!) |
It only happens on mobile (ie. through touch event). |
@vasiliki-b Looking further into this, it turns out it is broken on desktop also. Not sure how you're seeing that it isn't. In any case, thank you! 😄 I'll be fixing this shortly. |
Fixes #893 If `clickOutsideDeactivates=true` along with the return focus option being `true` and the outside click is on a focusable node, focus was returning to that node instead of the node originally focused prior to activation. Now the `returnFocusOnDeactivate` option does exactly what it says it will do instead of the seemingly well-intentioned (based on the comment that was removed) behavior.
Fixes #893 If `clickOutsideDeactivates=true` along with the return focus option being `true` and the outside click is on a focusable node, focus was returning to that node instead of the node originally focused prior to activation. Now the `returnFocusOnDeactivate` option does exactly what it says it will do instead of the seemingly well-intentioned (based on the comment that was removed) behavior.
Fixes #893 If `clickOutsideDeactivates=true` along with the return focus option being `true` and the outside click is on a focusable node, focus was returning to that node instead of the node originally focused prior to activation. Now the `returnFocusOnDeactivate` option does exactly what it says it will do instead of the seemingly well-intentioned (based on the comment that was removed) behavior.
@all-contributors add @vasiliki-b for bug |
I've put up a pull request to add @vasiliki-b! 🎉 |
Fixed in v7.3.0 just now. |
Thanks for fixing this 🥳 |
@vasiliki-b You're welcome! 😄 |
On mobile, when
clickOutsideDeactivates
andreturnFocusOnDeactivate
are set totrue
, clicking on an outside focusable element will focus that element instead of returning focus to the initial element.The text was updated successfully, but these errors were encountered: