[joy-ui][ButtonGroup] Clicking outside a menu doesn't close it #39903
Labels
bug 🐛
Something doesn't work
component: ButtonGroup
The React component.
package: joy-ui
Specific to @mui/joy
Duplicates
Latest version
Steps to reproduce 🕹
The bug is visible on the JoyUI examples here : https://mui.com/joy-ui/react-button-group/#split-button
In the split button we can see that once menu is opened, clicking outside of it does not close it despite it's the common behavior of all JoyUI's menu.
Current behavior 😯
Menu does not close when clicking outside.
Expected behavior 🤔
Menu wrapped into a ButtonGroup detects an outside click and automatically closes.
Context 🔦
The common behavior of JoyUI's menu (automatic closing on outside click) is the classical and the expected behavior by the user. It can be annoying to click again on the menu button to close it.
It can leads to UI bug : e.g having to menu opened in parallel.
Your environment 🌎
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: