Skip to content

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

Closed
@andreachiera

Description

@andreachiera

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions