Skip to content

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

Open
amigrave wants to merge 1 commit intodrewwilson:masterfrom
amigrave:patch-1
Open

Prevent tipTip to activate when source element is not anymore attached#7
amigrave wants to merge 1 commit intodrewwilson:masterfrom
amigrave:patch-1

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