-
-
Notifications
You must be signed in to change notification settings - Fork 533
Trying to add a trigger to hide the tooltip with 'onMouseLeave' #894
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
Can you try without controlling the tooltip state (remove <Tooltip style={{ pointerEvents: 'auto' }} /> Even if this works or not, either way we should probably have a I believe your use case is common enough that it should be possible to achieve just with the I'll probably work on that soon. |
Wow! That was the quickest response I've ever had when posting an issue/question in a Github library. Thank you for the quick response! And yes, that did work perfectly for me. I can now mouse over the tooltip and click on the two buttons. Thank you so much for you work on this library. |
No problem, I don't maintain many other projects so it's easier to be on watch for the new issues. Glad I could help. |
@mdodge-ecgrow do not forget to give a star to the project 😄 |
Thanks for the reminder, I never think to do that. It is done. |
Uh oh!
There was an error while loading. Please reload this page.
I am using react-tooltip in my app and just recently upgraded to v5. I have a section that uses HTML with a couple buttons in the tooltip. It looks like this on the page:

Each of those underlined numbers will cause the tooltip to show with the 2 buttons. I need the tooltip to stay open for the user to be able to click on a button. Initially, I tried adding the
onMouseLeave
onto the list element along with the onMouseEnter. But when I moved the mouse up to the buttons, the mouse went over another list element and triggered a new tooltip, so I could never click on a button. So then I thought I could add theonMouseLeave
to the actual tooltip. I tried that and the immediate child div to no avail.Here is my HTML for a list element:
So I want the tooltip to stay open until the mouse leaves the tooltip. How can I achieve this?
The text was updated successfully, but these errors were encountered: