Skip to content

Moving mouse from target into tooltip should have a delay if you cross another target accidently #411

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

Closed
RobertGary1 opened this issue Aug 13, 2018 · 5 comments

Comments

@RobertGary1
Copy link

I have a tooltip that contains a menu. So the user slides the mouse up into the tooltip. However, if they accidently touch another target getContent gets called and the content is immediatly changed, even though we have delayShow. I'd like to check in a change that if the tooltip is currently active and the user sets a parameter such as "delayNewContent" then we apply a delay before calling getContent. As usually once they enter the tooltip the timer will be cleared and the desired tooltip is still shown.

@RobertGary1 RobertGary1 changed the title Moving mouse from target into tooltip should have a delay if you cross another target Moving mouse from target into tooltip should have a delay if you cross another target accidently Aug 13, 2018
@aronhelser
Copy link
Collaborator

That sounds like a useful feature, especially if you can provide a PR. It would be great to have an example showing this functionality - we've had several comments asking about how to get a button/menu/scrolling to work inside a tooltip.

@RobertGary1
Copy link
Author

PR #416

@volodymyr-tsaryk
Copy link

volodymyr-tsaryk commented Oct 5, 2018

That PR has broken another functionality
We have buttons in the tooltip http://take.ms/m8hUv and after the button is clicked tooltip should become hidden, however after that update it remains on screen and is hidden only after we remove the mouse cursor from it.

We were hiding them using ReactTooltip.hide();

Could you please advise if there is a workaround?

@RobertGary1
Copy link
Author

RobertGary1 commented Oct 6, 2018 via email

@volodymyr-tsaryk
Copy link

@RobertGary1
No, there are no console errors
The issue is happening due to this line http://take.ms/OPRZz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants