Skip to content

Commit d9c8813

Browse files
authored
fix(cdk/a11y): handle signal based items in list key manager (#28854)
1 parent fca6d7a commit d9c8813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdk/a11y/key-manager/list-key-manager.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ export class ListKeyManager<T extends ListKeyManagerOption> {
366366

367367
/** Sets the active item to the last enabled item in the list. */
368368
setLastItemActive(): void {
369-
this._setActiveItemByIndex(this._items.length - 1, -1);
369+
this._setActiveItemByIndex(this._getItemsArray().length - 1, -1);
370370
}
371371

372372
/** Sets the active item to the next enabled item in the list. */

0 commit comments

Comments
 (0)