avoid closing the DropdownMenu if the user clicks outside the DropdownMenu #2470
Answered
by
joaom00
pavelgromyko
asked this question in
Help
-
At the moment I'm using DropdownMenu. One nuance arose in the work. |
Beta Was this translation helpful? Give feedback.
Answered by
joaom00
Oct 19, 2023
Replies: 1 comment 1 reply
-
You can use https://www.radix-ui.com/primitives/docs/components/dropdown-menu#content |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
pavelgromyko
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
onInteractOutside={event => event.preventDefault()}
inDropdownMenu.Content
https://www.radix-ui.com/primitives/docs/components/dropdown-menu#content