-
-
Notifications
You must be signed in to change notification settings - Fork 533
How to enable onHover behaviour for tooltip children (like in v4)? #880
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
Comments
Hey Darya. Thanks for the in-depth explanations, it helps immensely when figuring out the problem.
We'll probably be addind v4's <Tooltip style={{ pointerEvents: 'auto' }} />
Are you controlling the tooltip state manually with
So I'm not quite sure how you're getting the behavior you described.
As you can check in the same example, the tooltip should stay correctly placed even when scrolling. If you could provide some basic sample code, it would help a lot. |
Thank you for the quick answer @gabrieljablonski .
As for the remainding questions: I don't control tooltip's state myself. Here's a sandbox that shows the behaviour I had with
And here's the equivalent code using Could you provide some rough ideas on how to implement these behaviours with the latest package version? Thank you. |
Now I get it. Thanks for the code samples. This use case is a bit out of scope for the basic use cases for v5. We do support more complex uses, but you'll have to do some extra work. For the tooltip to remain in place when scrolling, As for the behavior when clicking the anchor, you can use the Here's an example. This isn't exactly the same behavior as your v4 example, but should be a good starting point for you. |
Thank you @gabrieljablonski . I now have all the information I need. |
Uh oh!
There was an error while loading. Please reload this page.
Hello.
I'm currently migrating a project to
react-tooltip
5.3.2
from a4.*
version.I struggle with keeping some existing behaviour detailed below. Would anyone be able to point to the right place in the docs / source code so that I have an idea of how to implement this?
Thank you.
5.3.2
andTooltipWrapper
)clickable
prop if I remember correctly.Now (v5):
mouseover-5.mp4
Before (v4):
mouseover-4.mp4
data-scroll-hide={false}
onTooltipWrapper
doesn't seem to do anything)The text was updated successfully, but these errors were encountered: