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

Check if target is connected before handling click outside #1170

Merged
merged 1 commit into from
Feb 10, 2024

Conversation

gabrieljablonski
Copy link
Member

@gabrieljablonski gabrieljablonski commented Feb 10, 2024

Closes #1111.

As discussed on #1111, after thinking about it, it does feel like a bug.

Beta version react-tooltip@5.26.1-beta.1170.0

Check the example here: https://stackblitz.com/edit/stackblitz-starters-ehdav1
The tooltip closes when interacting with an element inside the tooltip when it unmounts upon being interacted with.

Fork and update the package version to react-tooltip@5.26.1-beta.1170.0 and it should be fixed.

@gabrieljablonski gabrieljablonski merged commit 758df51 into master Feb 10, 2024
3 of 5 checks passed
@gabrieljablonski gabrieljablonski deleted the fix/check-target-is-connected branch February 10, 2024 22:18
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 this pull request may close these issues.

[BUG] Tooltip closes when button click changes conditional state variable
2 participants