Skip to content
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

Don't close on click when trigger hover #85

Closed
Tilican opened this issue Dec 18, 2019 · 1 comment
Closed

Don't close on click when trigger hover #85

Tilican opened this issue Dec 18, 2019 · 1 comment

Comments

@Tilican
Copy link

Tilican commented Dec 18, 2019

Hi,

I want to don't close the tooltip if trigger='hover' and user click on the trigger element.

Try here : https://react-popper-tooltip.netlify.com/#hover-trigger

THX

@denisborovikov
Copy link
Collaborator

denisborovikov commented Dec 18, 2019

Hi there,

You need to use a tooltip as a controlled component. Check this branch.

Here's a quick example https://codesandbox.io/s/react-popper-tooltip-example-sc9eq

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

2 participants