-
-
Notifications
You must be signed in to change notification settings - Fork 529
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
[BUG] When using the same single tooltip on a page, the delayShow/data-tooltip-delay-show is not respected #1235
Comments
Unless I'm misunderstanding your explanation, this is expected behavior, not a bug. When you have several elements that share the same tooltip, the tooltip always stays open when quickly switching between anchors. There's even an intentional small delay before effectively closing the tooltip, so you can "jump" small gaps (like the space between the elements in your example). In other words, To achieve your expected behavior, you might need to use multiple tooltips (which should be fine performance-wise if you only have something like <20 elements). |
I agree with OP. I would disagree that this is a common design pattern for tooltips. I have a complex dashboard page with many tooltips - and I don't want to be spammed with tooltips by just moving the mouse over the page after I have hovered on 1 tooltip somewhere. Is it possible you can somehow solve this? Thanks |
Hi! Would it be possible to add a prop that would make it so that the "fully closed" state is happening instantly on mouseLeave? Or another prop that would make this behavior function as I would like. |
Bug description
When using the same single tooltip on a page, the delayShow/data-tooltip-delay-show is not respected if you hover over them immediately after each other.
Version of Package
v5.28.0
To Reproduce
Steps to reproduce the behavior.
steps to reproduce in the attached stackblitz:
actual result: the "Another tooltip" is shown immediately
expected result: the tooltip should take 1 second before it is shown
Screenshots
react-tooltip.mp4
Desktop (please complete the following information if possible or delete this section):
The text was updated successfully, but these errors were encountered: