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

[BUG] Tooltip doesn't close if nested dom elements are present #1220

Open
andreachiera opened this issue Aug 7, 2024 · 2 comments · May be fixed by #1224
Open

[BUG] Tooltip doesn't close if nested dom elements are present #1220

andreachiera opened this issue Aug 7, 2024 · 2 comments · May be fixed by #1224
Labels

Comments

@andreachiera
Copy link

Bug description
image
image

Having the configuration defined on the screenshots above, when I use a nested element the tooltip doesn't close. I think it happens if the event target property is different than the element on which is defined the data-tooltip-id property. The open event works fine.

In the described situation, the tooltip for "e1" works fine, but not the "e2" element.

In fact, I tried creating a custom mouse click event directly on the element with the data-tooltip-id, and the tooltip closes fine.

image

Version of Package
5.28.0

Expected behavior
Closing event accepted also if the event arrives from another nested target element.

Desktop (please complete the following information if possible or delete this section):

  • Browser [edge, firefox]
  • Version: latest
  • Frameworks [React 18, Next.js 14]
@gabrieljablonski
Copy link
Member

Sorry for the delay.

If this is still an issue, do you mind providing a simple sample project (on StackBlitz or CodeSandbox).

That would help figuring out what's wrong.

@andreachiera
Copy link
Author

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

Successfully merging a pull request may close this issue.

2 participants