selection-list.ts (material2-7.3.3) | : | selection-list.ts (material2-7.3.4) | ||
---|---|---|---|---|
skipping to change at line 417 | skipping to change at line 417 | |||
this._setAllOptionsSelected(true); | this._setAllOptionsSelected(true); | |||
} | } | |||
/** Deselects all of the options. */ | /** Deselects all of the options. */ | |||
deselectAll() { | deselectAll() { | |||
this._setAllOptionsSelected(false); | this._setAllOptionsSelected(false); | |||
} | } | |||
/** Sets the focused option of the selection-list. */ | /** Sets the focused option of the selection-list. */ | |||
_setFocusedOption(option: MatListOption) { | _setFocusedOption(option: MatListOption) { | |||
this._keyManager.updateActiveItemIndex(this._getOptionIndex(option)); | this._keyManager.updateActiveItem(option); | |||
} | } | |||
/** | /** | |||
* Removes an option from the selection list and updates the active item. | * Removes an option from the selection list and updates the active item. | |||
* @returns Currently-active item. | * @returns Currently-active item. | |||
*/ | */ | |||
_removeOptionFromList(option: MatListOption): MatListOption | null { | _removeOptionFromList(option: MatListOption): MatListOption | null { | |||
const optionIndex = this._getOptionIndex(option); | const optionIndex = this._getOptionIndex(option); | |||
if (optionIndex > -1 && this._keyManager.activeItemIndex === optionIndex) { | if (optionIndex > -1 && this._keyManager.activeItemIndex === optionIndex) { | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |