mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
refactor(selection-list): avoid deprecated method (#15371)
* use `ListKeyManager`'s `updateActiveItem` instead of deprecated `updateActiveItemIndex`
This commit is contained in:
committed by
Joey Perrott
parent
e130c5c27c
commit
14b4581036
@@ -433,7 +433,7 @@ export class MatSelectionList extends _MatSelectionListMixinBase implements Focu
|
||||
|
||||
/** Sets the focused option of the selection-list. */
|
||||
_setFocusedOption(option: MatListOption) {
|
||||
this._keyManager.updateActiveItemIndex(this._getOptionIndex(option));
|
||||
this._keyManager.updateActiveItem(option);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user