-
-
Notifications
You must be signed in to change notification settings - Fork 530
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
[FEAT REQ] Close the tooltip after delay even while still hovering the anchor element #1212
Comments
https://react-tooltip.com/docs/options Check |
Sorry, my question is unanswered. |
@ggnu11 we indeed do not have a solution for this use-case, but I do like the idea. Maybe we could include an I've updated your code sandbox to fix the issue you're having, so maybe that works for you for now, until we possibly work on the new feature. https://codesandbox.io/p/sandbox/tooltip-forked-5385t9 Anyway, let's leave this issue open for now. |
Thank you for your good feedback, I'll keep the code sandbox open for others to refer to. |
This issue is stale because it has not seen activity in 30 days. Remove the |
When mouse hover, the tooltip is displayed, and I want to close it 5 seconds after the tooltip is displayed.
I customized the tooltip using afterShow and afterHide, but there is a problem.
If you hover your mouse over id=test1 and move your mouse to id=test2 to open the tooltip and mouse over the existing test1 again, there is a bug that closes immediately, not after 5 seconds.
When the id changes, I want to initialize the timeOut of that id when I do mouseLeave.
I'm going to solve this method and set the tooltip duration to 5 seconds, so if there's a good way other than this, please share it.
https://codesandbox.io/p/sandbox/tooltip-w2q7ll?file=%2Fsrc%2FApp.tsx%3A15%2C14-15%2C19
The text was updated successfully, but these errors were encountered: