Skip to content

Commit

Permalink
fix(cdk/a11y): handle signal based items in list key manager (#28854)
Browse files Browse the repository at this point in the history
(cherry picked from commit d9c8813)
  • Loading branch information
twittwer authored and crisbeto committed Apr 18, 2024
1 parent b87e2e8 commit c2dc2da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdk/a11y/key-manager/list-key-manager.ts
Expand Up @@ -366,7 +366,7 @@ export class ListKeyManager<T extends ListKeyManagerOption> {

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

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

0 comments on commit c2dc2da

Please sign in to comment.