How do I stop a dropdown menu from closing after clicking an option #2391
-
Can't for the life of me figure this out. I could just put my own state in for the open and closing but how do I let the default behavior of clicking outside take over after that? |
Beta Was this translation helpful? Give feedback.
Answered by
benoitgrelard
Feb 6, 2024
Replies: 2 comments 1 reply
-
Just going to use the onPointerDownOutside |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @StephenSHorton, I assume you mean when selecting an item? If so, the correct answer is to call |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
StephenSHorton
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @StephenSHorton, I assume you mean when selecting an item? If so, the correct answer is to call
event.preventDefault
inonSelect
.