-
Notifications
You must be signed in to change notification settings - Fork 249
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
click handler should not fire blur when the click target inside currently focused element #566
Comments
Please share the link to the codesandbox as you see it in your address bar / per click on "Share"->"Copy sandbox link" not just the browser output. The reproduction in the sandbox serves as an easily accessible reference point for everybody running into this issue or working on it. |
Updated the original comment |
The problem seems to be that Line 68 in 7a5c51e
I think the solution is to check if one of the parents is focusable and move the focus there. |
@all-contributors add @just-boris bug |
I've put up a pull request to add @just-boris! 🎉 |
@testing-library/user-event
version: 7.29.6 (latest at the time of writing)Testing Framework and version: n/a
DOM Environment: Tested in Chrome/Safari/Firefox
Steps to reproduce
Code Example:
Codesanbox source: https://codesandbox.io/s/rvh87
Suggested solution:
The library should check if the click target is inside already focused container and should not blur it.
The text was updated successfully, but these errors were encountered: