Skip to content

[BUG] Tooltip position and show status not synchronized. #1010

Open
@knubie

Description

@knubie

Describe the bug
When moving from one anchor to another, sometimes the tooltip's position is updated before its visibility. This results in some glitchy / flickering behavior.

Version of Package
v5.10.6

To Reproduce

  1. Set Tooltip delayShow to 300
  2. Set Tooltip delayHide to 0
  3. Move from one anchor to another (with no space between)
  4. Observe that the tooltip first changes position and content, then hides. Then after 300ms shows again.

Expected behavior
The tooltip should hide first, then update position and content.

Screenshots
https://user-images.githubusercontent.com/431251/230918927-995f1ccf-2449-40d8-8a4b-948c48605393.mp4

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

  • OS: MacOS
  • Browser firefox
  • Version [e.g. 22]
  • Frameworks create-react-app

Additional context
Repro: https://github.com/knubie/react-tooltip-demo
Somewhat, but not really related: #1008

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugHelp WantedV6It might get fixed/merged before, but most likely only on V6's release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions