Click outside behaviour? #1076
Answered
by
gabrieljablonski
ricardo-fnd
asked this question in
Q&A
-
Hi devs! I went on the docs, issues and PRs, and can't find a reference to this, therefore I'm creating this discussion. Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
gabrieljablonski
Aug 17, 2023
Replies: 2 comments 6 replies
-
I actually found this using |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @ricardo-fnd. Whenever you run into deprecation warnings, you often will find more info on how to proceed close by. Is |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As for closing the tooltip when clicking outside, you'll have to control the
isOpen
prop manually, and add an event listener to your divs to know when you've clicked outside them.You should be able to find a generic solution to this by searching for "click outside event javascript" or something similar.