Skip to content

[BUG] When using same single tooltip on page but changing delayShow, tooltip shows after mouseleave #1204

Closed
@rgoldstein22

Description

@rgoldstein22

Bug description
If you are using one tooltip component and then different elements change the delayShow prop, it will show the next tooltip after mouseleave.

Version of Package
v5.26.4

To Reproduce
Use one component <ReactTooltip id="test"/>
Then use data-tooltip-id="test" on multiple elements. Give elements different values for attribute data-tooltip-delay-show
Then hover on the first element using that tooltip, and mouseleave the element and see tooltip delay show

Expected behavior
I would expect the tooltip to delay show, then hide, and remain hidden until I hovered on another element

Screenshots
test

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

  • OS: Sonoma 14.5
  • Browser Chrome
  • Version 126.0.6478.127
  • Frameworks React 18

Additional context
Add any other context about the problem here.

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