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 is not removed if the element removed before mouseleave event is triggered #757

Closed
FrankHossfeld opened this issue Feb 1, 2023 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@FrankHossfeld
Copy link
Contributor

FrankHossfeld commented Feb 1, 2023

In some cases we might have an element with a tooltip but that element got removed on click for example due to navigaion, in this case the element will be removed and the tooltip will persist and never removed since the mouseleave event will never get triggered.

Steps to reproduce the behavior:

  1. Add a tooltip to an icon
  2. move the mouse over the icon -> tooltip is shown
  3. move the mouse away from the icon -> tooltip is removed
  4. move the mouse over the icon -> tooltip is shown
  5. click the icon and remove the icon from the DOM
  6. tooltip is not removed

Seen in version 1.0.0-RC17

@vegegoku vegegoku changed the title tooltip hiding error Tooltip is not removed if the element removed before mouseleave event is triggered Feb 1, 2023
@vegegoku vegegoku self-assigned this Feb 1, 2023
@vegegoku vegegoku added the bug Something isn't working label Feb 1, 2023
@vegegoku vegegoku added this to the 1.0.0-RC18 milestone Feb 1, 2023
vegegoku added a commit that referenced this issue Feb 1, 2023
@vegegoku vegegoku closed this as completed Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants