Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(CdkMenuItem): Main menu closes after clicking on a menu item that is a menu #30050

Open
1 task
Xylios13 opened this issue Nov 20, 2024 · 0 comments
Open
1 task
Labels
needs triage This issue needs to be triaged by the team

Comments

@Xylios13
Copy link

Xylios13 commented Nov 20, 2024

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

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:

  1. Click on File button
  2. Click on New menu item

Expected Behavior

The submenu for the New menu item is closed (or kept open), the menu associated with File is kept open (like a CdkMenuBar 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 the File menu is closed as well.

Environment

  • Angular: 19.0.0
  • CDK/Material: 19.0.0
  • Browser(s): 131.0.6778.70 (Official Build) (64-bit)
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows 10 Pro
@Xylios13 Xylios13 added the needs triage This issue needs to be triaged by the team label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage This issue needs to be triaged by the team
Projects
None yet
Development

No branches or pull requests

1 participant