|
70 | 70 | [attr.aria-expanded]="isOpen()" |
71 | 71 | [attr.aria-controls]="listboxId()" |
72 | 72 | [attr.aria-labelledby]="labelId()" |
73 | | - [attr.aria-activedescendant]="focusedOptionId()" |
74 | 73 | /> |
75 | 74 | </div> |
76 | 75 | } @else { |
|
179 | 178 | cdkListbox |
180 | 179 | [cdkListboxMultiple]="multiple()" |
181 | 180 | [cdkListboxValue]="visibleSelectedValues()" |
| 181 | + [cdkListboxNavigatesDisabledOptions]="false" |
| 182 | + [cdkListboxUseActiveDescendant]="true" |
182 | 183 | (cdkListboxValueChange)="handleValueChange($event)" |
183 | 184 | (keydown.tab)="toggleIsOpen(true)" |
184 | 185 | (keydown.escape)="toggleIsOpen(true)" |
|
187 | 188 | @if (filteredOptions().length) { |
188 | 189 | @if (multiple() && showSelectAll()) { |
189 | 190 | <li |
190 | | - [id]="getOptionId('selectAll')" |
191 | 191 | class="tedi-dropdown-item" |
192 | | - [class.tedi-dropdown-item--focused]="isOptionFocused('selectAll')" |
193 | 192 | [cdkOption]="SpecialOptionControls.SELECT_ALL" |
194 | 193 | > |
195 | 194 | <tedi-dropdown-item-value type="checkbox" [selected]="allOptionsSelected()"> |
|
202 | 201 | @if (group.label.length > 0) { |
203 | 202 | @if (multiple() && selectableGroups()) { |
204 | 203 | <li |
205 | | - [id]="getOptionId('group', undefined, group.label)" |
206 | 204 | class="tedi-dropdown-item tedi-select__group-name tedi-select__group-name--selectable" |
207 | | - [class.tedi-dropdown-item--focused]="isOptionFocused('group', undefined, group.label)" |
208 | 205 | [cdkOption]="SpecialOptionControls.SELECT_GROUP + group.label" |
209 | 206 | > |
210 | 207 | <tedi-dropdown-item-value type="checkbox" [selected]="isGroupSelected(group.label)"> |
|
224 | 221 |
|
225 | 222 | @for (option of group.options; track option.value; let i = $index) { |
226 | 223 | <li |
227 | | - [id]="getOptionId('option', option.value)" |
228 | 224 | class="tedi-dropdown-item" |
229 | 225 | [class.tedi-dropdown-item--selected]="!multiple() && isOptionSelected(option.value)" |
230 | 226 | [class.tedi-dropdown-item--disabled]="option.disabled" |
231 | 227 | [class.tedi-dropdown-item--custom]="optionTemplate()" |
232 | | - [class.tedi-dropdown-item--focused]="isOptionFocused('option', option.value)" |
233 | 228 | [cdkOption]="option.value" |
234 | 229 | [cdkOptionDisabled]="option.disabled" |
235 | 230 | > |
|
0 commit comments