Possible to stop Menu from closing on MenuItem press? #6622
Closed
dougmacknz
started this conversation in
General
Replies: 2 comments 1 reply
-
Multiple selection won't close https://react-spectrum.adobe.com/react-aria/Menu.html#multiple What is it you're trying to accomplish though? Why do you want to prevent it from closing? |
Beta Was this translation helpful? Give feedback.
0 replies
-
It is a rare case, but say that a MenuItem opens a modal, and you want the menu to remain open for when the modal closes. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With the
react-aria-components
Menu, is it possible to intercept one of the ways in which it is triggered to close: when pressing a menu item?I've tried using controlled open state but it doesn't give complete control because it seems
onOpenChange
still needs to be provided for the open state to change, and there's no way to avoidonOpenChange
from triggering on MenuItem press as far as I can tell.Beta Was this translation helpful? Give feedback.
All reactions