Is this a regression?
The previous version in which this bug was not present was
No response
Description
Keyboard focus stays on the menu trigger when opening the menu. Happens only for the main menu list, works fine for submenus.
Reproduction
StackBlitz link: https://angular.dev/guide/aria/menu
Steps to reproduce:
- focus the first example menu trigger with a keyboard
- press Enter/Space/ArrowDown/ArrowUp
- see menu open but focus still stays on the trigger
- press the same key again
- now focus finally moves to the expected menu item (last one on ArrowUp pressed)
Expected Behavior
On menu open focus should immediately move to the first/last menu item.
Actual Behavior
On menu open focus stays on the menu trigger
Environment
- Angular: 22.1.4
- CDK/Material: 22.1.4
- Browser(s): Chrome 151.0.7922.174
- Operating System (e.g. Windows, macOS, Ubuntu): macOS
Is this a regression?
The previous version in which this bug was not present was
No response
Description
Keyboard focus stays on the menu trigger when opening the menu. Happens only for the main menu list, works fine for submenus.
Reproduction
StackBlitz link: https://angular.dev/guide/aria/menu
Steps to reproduce:
Expected Behavior
On menu open focus should immediately move to the first/last menu item.
Actual Behavior
On menu open focus stays on the menu trigger
Environment