-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/menu
Description
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
14.2.7
Description
In a space constrained layout, submenus will occasionally overlap with parent menus. When clicking a parent item with the intention of opening a submenu, the submenu will appear over the parent item and seem to receive a mouse event, thereby selecting it. This behavior is unexpected and could lead to accidental user actions.
Reproduction
Steps to reproduce:
- https://material.angular.io/components/menu/examples
- Pick mat-menu
- In dev tools set screen to 256px wide
- Click nested menu -> Animal index -> click near arrow on vertebrates
- Mammals will be selected accidentally (see gif below)
Expected Behavior
Submenu should not have an item selected as a result of a click on its parent.
Actual Behavior
Submenu has an item selected as a result of a click on its parent.
Environment
- Angular: 15.0.4
- CDK/Material: 15.0.3
- Browser(s): Chrome latest
- Operating System (e.g. Windows, macOS, Ubuntu): macOS latest
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/menu