Skip to content

Commit b204a16

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

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
@@ -416,7 +416,7 @@ export class MatSelectionList extends _MatSelectionListMixinBase implements Focu
416416

417417
/** Sets the focused option of the selection-list. */
418418
_setFocusedOption(option: MatListOption) {
419-
this._keyManager.updateActiveItemIndex(this._getOptionIndex(option));
419+
this._keyManager.updateActiveItem(option);
420420
}
421421

422422
/**

0 commit comments

Comments
 (0)