Skip to content

Commit c2dc2da

Browse files
twittwercrisbeto
authored andcommitted
fix(cdk/a11y): handle signal based items in list key manager (#28854)
(cherry picked from commit d9c8813)
1 parent b87e2e8 commit c2dc2da

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

Lines changed: 1 addition & 1 deletion
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)