-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Open
Labels
needs triageThis issue needs to be triaged by the teamThis issue needs to be triaged by the team
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
When calling .goToFirst() the first option is set active. But it is not possible to select it with Enter. If the user hits arrow down one time you can select the first option. But my whole reason for calling .goToFirst() is so the user do not need arrows when first option is the one they want.
I suspect an underlying keyboard manager is not being synced when calling `.goToFirst()'
Reproduction
StackBlitz link: https://stackblitz.com/edit/go-to-first-issue-angular-aria-wpcbw3sz?file=src%2FApp.ts
Steps to reproduce:
- Load stackblitz
- Hit enter
Hitting enter should trigger en alert with the text "Option 0", but it does not happen
Expected Behavior
When calling .goToFirst() the first option is selected and hitting Enter on the keyboard will select it.
Actual Behavior
Nothing happens when hitting Enter
Environment
- Angular: 21.1.3
- CDK/Material: 21.1.3
- Browser(s): Edge, Firefox
- Operating System (e.g. Windows, macOS, Ubuntu): Windows, Macos
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
needs triageThis issue needs to be triaged by the teamThis issue needs to be triaged by the team