Open
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
No response
Description
This issue only occurs when using the menu with a keyboard.
If in a cdk menu, a sub menu is opened with ONLY disabled children, and then another sub menu is opened, that sub menu with the disabled children remains open.
Reproduction
StackBlitz link: https://stackblitz.com/edit/components-issue-stnsdh?file=src%2Fapp%2Fexample-component.html
Steps to reproduce:
- focus "Open Menu" button
- press space / open menu
- navigate to menu item "With disabled child" using arrow keys
- open sub menu by pressing arrow right
- navigate to "With enabled child" by pressing arrow up
- open sub menu by pressing arrow right
Expected Behavior
Sub menu with disabled child is closed
Actual Behavior
Sub menu with disabled child is NOT closed
Environment
- Angular: 15
- CDK/Material: 15
- Browser(s): Firefox
- Operating System (e.g. Windows, macOS, Ubuntu): Ubuntu