usePopover - prevent popover getting closed on blur #5341
-
|
Hello, Is there a way to prevent popover getting closed on blur and only can be closed using a close button? Is there a prop such as E.g. popover |
Beta Was this translation helpful? Give feedback.
Answered by
reidbarber
Nov 1, 2023
Replies: 1 comment
-
|
useOverlay has |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
samithaf
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

useOverlay has
shouldCloseOnInteractOutside, and we are considering adding that to usePopover and passing it through to useOverlay as a part of #4976. Besides that, perhaps you could make the isOpen state controlled, and only close it when the button is pressed.