bug(CdkMenuItem): Main menu closes after clicking on a menu item that is a menu #30050
Labels
area: cdk/menu
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Is this a regression?
The previous version in which this bug was not present was
No response
Description
Clicking on a menu item that is also a menu will close the whole menu, instead of closing only the opened submenu.
Reproduction
StackBlitz link: https://stackblitz.com/edit/4aortd
Steps to reproduce:
File
buttonNew
menu itemExpected Behavior
The submenu for the
New
menu item is closed (or kept open), the menu associated withFile
is kept open (like aCdkMenuBar
or the menu nested example: https://material.angular.io/components/menu/examples#menu-nested)Actual Behavior
The submenu for the
New
menu item is closed and theFile
menu is closed as well.Environment
The text was updated successfully, but these errors were encountered: