Skip to content

[BUG] Adding/removing svg elements breaks tooltip of existing elements #1107

Closed
@fatton139

Description

@fatton139

Bug description

Odd one but, when svg elements are added/removed, the existing svg element's tooltips stop working.

Version of Package
v5.21.6

To Reproduce
Reproduction: https://codesandbox.io/s/ecstatic-torvalds-vmy6qm?file=/src/index.tsx
Click the "show" button then hover over the black box, you'll note that the tooltip stops showing up.

There are ways to reproduce it outside svgs but they'll require unconventional code, SVG is the most straightforward way to demo this.

Expected behavior
Tooltip should still show up on the existing svg elements.

Screenshots
See code sandbox reproduction

Thanks!

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