-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Tooltip does not close if focus is triggered by keyboard but removed mouse #4503
Comments
Fix open in PR #4512 |
This issue still exists. I have updated the sandbox to [email protected] and the problem is still reproducible. |
vokoscreen-2021-02-08_12-43-35.mp4 |
@dlech did you also upgrade the core package? there was a change made there targeting this issue. |
yes, I upgraded all packages in the sandbox |
Would it work to use onfocusout instead of onblur? |
The assumption that "a click handler somewhere else will close the popover if necessary" does not appear to be valid. If the user clicks on a non-focusable element. There are no other events that cause the popover to close other than mouseleave, but the mouse is not over the target when focus is lost. Fixes palantir#4503.
I made an updated sandbox to verify that it is still a bug: https://codesandbox.io/s/blueprint-sandbox-forked-eiv42?file=/src/CoreExample.tsx In fact you can repro it on the Tooltip2 docs page, as I mentioned in #5080 (comment) |
Environment
Code Sandbox
Link to a minimal repro (fork this code sandbox): https://codesandbox.io/s/blueprint-sandbox-forked-146cf?file=/src/CoreExample.tsx
The example has been modified to add
Tooltip2
around the Core Sandbox buttons.FWIW, the same happens with the deprecated
Tooltip
.Steps to reproduce
Actual behavior
The tooltip stays open
Expected behavior
The tooltip should close since the focus is lost
Possible solution
?
The text was updated successfully, but these errors were encountered: