[Menu] Clicking checkbox/radio items closes menu when defaultOpen
#1297
Labels
component: menu
This is the name of the generic UI component, not the React module!
Bug report
Current behavior
When a Menu has the
defaultOpen
prop, clicking a checkbox or radio item for the first time closes the Menu. This doesn't happen when the checkbox/radio item is activated using the keyboard, so this looks like a pointer only bug. It also doesn't happen when the Menu is closed and reopened. It only happens when clicking checkbox/radio items for the first time whendefaultOpen
is present.Kapture.2025-01-07.at.10.00.26.mp4
The attached video showcases these scenarios:
defaultOpen
: clicking checkbox/radio items closes the Menu.defaultOpen
but it's closed and reopen: clicking checkbox/radio items doesn't close the Menu.defaultOpen
but it's operated with keyboard: activating checkbox/radio items doesn't close the Menu.Expected behavior
The Menu should stay open when clicking a checkbox or radio item for the first time when the
defaultOpen
prop is present.Reproducible example
https://codesandbox.io/p/sandbox/proud-architecture-qv4gd4
Base UI version
1.0.0-alpha.4
The text was updated successfully, but these errors were encountered: