Open
Description
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
- Set
Tooltip
delayShow
to300
- Set
Tooltip
delayHide
to0
- Move from one anchor to another (with no space between)
- 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