[Bug]: MenuButton and ComboButton not closing when clicking outside in a Modal #17066
Open
2 tasks done
Labels
component: combo-button
component: menu-button
severity: 2
https://ibm.biz/carbon-severity
type: bug 🐛
Package
@carbon/react
Browser
No response
Package version
v10.62
React version
No response
Description
When using MenuButton and ComboButton components inside a ComposedModal in Carbon Design System, the menus do not close when clicking outside of the menu area. This behavior is inconsistent with the expected behavior of dropdowns and menus, which should close when clicking outside of them.
Reproduction/example
https://stackblitz.com/edit/github-f6aces?file=src%2FApp.jsx,package.json
Steps to reproduce
Expected Behavior:
The menu should close when clicking outside of the menu area, both within the modal and outside the modal.
Actual Behavior:
The menu remains open when clicking outside of the menu area.
Suggested Severity
Severity 2 = User cannot complete task, and/or no workaround within the user experience of a given component.
Application/PAL
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: