Is this a regression?
The previous version in which this bug was not present was
No response
Description
When using the @angular/aria Listbox and Option directives, options marked as disabled ([disabled]="true") are visually indicated as disabled (aria-disabled is set true) but remain reachable via keyboard tab/arrow navigation. I expect disabled options to be skipped entirely during keyboard navigation.
Reproduction
StackBlitz link: https://stackblitz.com/edit/fnywtytq?file=src%2Fmain.ts,src%2Fstyles.css,src%2Findex.html
Steps to reproduce:
- set disabled to true on any ngOption
- use keyboard to move interactions
- observe disabled item is also reachable
Expected Behavior
Disabled Option elements inside a Listbox should not be focusable or reachable via keyboard navigation (arrow keys, Tab, etc.)
Actual Behavior
- aria-disabled="true" is correctly applied to the disabled option's DOM element.
- The option is still focusable and can be reached via keyboard arrow navigation.
- The user can land focus on a disabled option, which is confusing and inconsistent with the disabled state.
Environment
- Angular: 22
- CDK/Material: 22
- Browser(s): Chrome
- 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
When using the
@angular/ariaListbox and Option directives, options marked as disabled ([disabled]="true") are visually indicated as disabled (aria-disabled is set true) but remain reachable via keyboard tab/arrow navigation. I expect disabled options to be skipped entirely during keyboard navigation.Reproduction
StackBlitz link: https://stackblitz.com/edit/fnywtytq?file=src%2Fmain.ts,src%2Fstyles.css,src%2Findex.html
Steps to reproduce:
Expected Behavior
Disabled Option elements inside a Listbox should not be focusable or reachable via keyboard navigation (arrow keys, Tab, etc.)
Actual Behavior
Environment