You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The behaviour I'm seeing is that if a menu is already open, when you open a second one, the first one stays open. This way you can end up with all the menus open at once. Clicking outside the menus then closes them on-by-one in a queue in reverse order of the order they were opened.
Without taking manual control, is there a way to make it so that opening a menu closes all currently open ones?
(I saw a similar question from 2023 but the response there was about structuring the component, and I'm pretty sure I've done that right)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I have a UI with multiple rows, and a
<DropdownMenu>
on each row. Following the examples, I have:The behaviour I'm seeing is that if a menu is already open, when you open a second one, the first one stays open. This way you can end up with all the menus open at once. Clicking outside the menus then closes them on-by-one in a queue in reverse order of the order they were opened.
Without taking manual control, is there a way to make it so that opening a menu closes all currently open ones?
(I saw a similar question from 2023 but the response there was about structuring the component, and I'm pretty sure I've done that right)
Beta Was this translation helpful? Give feedback.
All reactions