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

Prevent tipTip to activate when source element is not anymore attached #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amigrave
Copy link

Eg: If you have a tipTip hovering on a button and the click event on the button will result in removing the button itself, the tipTip will be activated but the mouseLeave will never be triggered because the button element is not attached in the DOM anymore.

This is fixed by checking if the source element is still attached to the DOM before activating the tipTip

@danimesq
Copy link

Hi, @amigrave
I've forked TipTip to maintain it and use in all web projects of my community.
Please clone your pull request to: https://github.com/Software-js/TipTip
Thanks!

@danimesq
Copy link

Merge in: Floflis#8.

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

Successfully merging this pull request may close these issues.

2 participants