Skip to content

Commit 14b4581

Browse files
swseverancejosephperrott
authored andcommitted
refactor(selection-list): avoid deprecated method (#15371)
* use `ListKeyManager`'s `updateActiveItem` instead of deprecated `updateActiveItemIndex`
1 parent e130c5c commit 14b4581

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/list/selection-list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ export class MatSelectionList extends _MatSelectionListMixinBase implements Focu
433433

434434
/** Sets the focused option of the selection-list. */
435435
_setFocusedOption(option: MatListOption) {
436-
this._keyManager.updateActiveItemIndex(this._getOptionIndex(option));
436+
this._keyManager.updateActiveItem(option);
437437
}
438438

439439
/**

0 commit comments

Comments
 (0)