Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unexpected behavior with delayShow #1119

Closed
gabrieljablonski opened this issue Nov 12, 2023 · 5 comments · Fixed by #1168
Closed

[BUG] Unexpected behavior with delayShow #1119

gabrieljablonski opened this issue Nov 12, 2023 · 5 comments · Fixed by #1168
Labels

Comments

@gabrieljablonski
Copy link
Member

gabrieljablonski commented Nov 12, 2023

Bug description
delayShow={1000} results in unexpected behavior when hovering between anchor elements.

Version of Package
v5.22.0

To Reproduce
Hover between two anchor elements that share a tooltip with a value set for delayShow. The tooltip will change to the second anchor element before closing.

Expected behavior
Two options:

  1. The tooltip should stay open when hovering between two elements that are close enough
  2. The tooltip should abruptly close, and open again for the new anchor only after the set delay

I lean towards 1.

Additional context
CodeSandbox sample: https://codesandbox.io/s/frosty-noether-y4m79q?file=/src/App.js

#1114 related

@gabrieljablonski
Copy link
Member Author

gabrieljablonski commented Nov 12, 2023

@dsims01 watch this issue so you're notified when it's fixed.

@gabrieljablonski
Copy link
Member Author

Forgot to mention, a viable workaround is to also set delayHide to something like 150ms, which should mitigate greatly this specific scenario of switching between anchor elements that are close by.

@OahMada
Copy link

OahMada commented Dec 3, 2023

I've had the same issue.

@gabrieljablonski
Copy link
Member Author

[email protected] (from #1168) seems to fix this.

Feel free to test it out until we are ready to release an official version.

@gabrieljablonski
Copy link
Member Author

Fixed on official release [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants