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

Tooltip not appearing/disappearing when hovering from one element to the next (without a gap) #39

Open
de-code opened this issue Feb 23, 2017 · 5 comments

Comments

@de-code
Copy link

de-code commented Feb 23, 2017

When two elements with tooltips are next to (or on top of) each other then there won't be a gap where the tooltip is disabled. The tooltip is then not shown correctly if at all.

(The workaround is to delay triggering the hover state on mouseEnter)

@Redmega
Copy link
Collaborator

Redmega commented Apr 1, 2017

Thanks for that workaround. In my case I also had to add a timeOut on the mouseLeave as well.

@vegetableman
Copy link

vegetableman commented Jan 25, 2018

Faced the same issue, just giving a different group prop for each tooltip also helps.

@Redmega
Copy link
Collaborator

Redmega commented Jan 26, 2018

@vegetableman The issue with doing that is that it will create multiple tooltips in the DOM. If all the tooltips are in the same group, they will reuse the same DOM element.

@vegetableman
Copy link

@Redmega Don't think that's a big deal, after all, libraries like tippy do the same.

@Redmega
Copy link
Collaborator

Redmega commented Jan 26, 2018

Fair enough @vegetableman. Just thought I'd mention it, some users need to keep DOM elements to a minimum for whatever reason.

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

No branches or pull requests

3 participants