-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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] Flickers when overlaped with element it is attached to #10735
Comments
That fix works perfectly for what I'm using it for. Thanks @freund17 |
@freund17 Works for me as well! PR welcome! |
Still happens on 1.0.0-beta.41 |
The code for the suggested solution is: <Tooltip PopperProps={{ style: { pointerEvents: 'none' } }}>
...
</Tooltip> |
@stefanwille but beware, |
@avetisk Wrong feature. Directly from your link:
Here is the correct one: ;) |
There's an easier way to replicate: https://codesandbox.io/s/v0zzv4jx93 Just place the tooltip inside a container with And based on @freund17 's suggestion, the following theme override solves it for me:
|
Thanks @freund17, works for me too. |
I have updated the reproduction to the latest version: https://codesandbox.io/s/4248q9vm0w. |
Sometimes tooltips overlap with the element they are attached to.
This causes flickering when moving the mouse-cursor. (Because the cursor is sometimes detected moving over the attached element -- showing the tooltip -- and sometimes detected moving over the tooltip -- hiding it.
Expected Behavior
The tooltip shoud not be hidden when the cursor passes over it -- only when the cursor leaves the area of the attached element.
Current Behavior
Moving the cursor over the tooltip closes it, even when the cursor is still over the attached element.
Steps to Reproduce (for bugs)
Sandbox
Context
The steps to provoke this problem may seem a little odd, but never the less, this is a problem for me.
Your Environment
Possible Solution
Setting the css property "pointer-events: none" on the tooltip-popper does the trick.
It makes the tooltip beeing ignored for any kind of cursor-interaction.
Which is exactly what I would expect from a tooltip.
The text was updated successfully, but these errors were encountered: