Skip to content

Commit 0a617d6

Browse files
committed
fix(material/list): remove previously removed API (#26165)
In #21974 the `MatSelectionChange.option` property was removed, but we accidentally re-added it during the MDC switch. These changes re-remove the property. Fixes #26005. (cherry picked from commit 3d298e0)
1 parent 045838c commit 0a617d6

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/material/list/selection-list.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,6 @@ export class MatSelectionListChange {
4646
constructor(
4747
/** Reference to the selection list that emitted the event. */
4848
public source: MatSelectionList,
49-
/**
50-
* Reference to the option that has been changed.
51-
* @deprecated Use `options` instead, because some events may change more than one option.
52-
* @breaking-change 12.0.0
53-
*/
54-
public option: MatListOption,
5549
/** Reference to the options that have been changed. */
5650
public options: MatListOption[],
5751
) {}
@@ -213,7 +207,7 @@ export class MatSelectionList
213207

214208
/** Emits a change event if the selected state of an option changed. */
215209
_emitChangeEvent(options: MatListOption[]) {
216-
this.selectionChange.emit(new MatSelectionListChange(this, options[0], options));
210+
this.selectionChange.emit(new MatSelectionListChange(this, options));
217211
}
218212

219213
/** Implemented as part of ControlValueAccessor. */

tools/public_api_guard/material/list.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,7 @@ export class MatSelectionList extends MatListBase implements SelectionList, Cont
254254
export class MatSelectionListChange {
255255
constructor(
256256
source: MatSelectionList,
257-
option: MatListOption,
258257
options: MatListOption[]);
259-
// @deprecated
260-
option: MatListOption;
261258
options: MatListOption[];
262259
source: MatSelectionList;
263260
}

0 commit comments

Comments
 (0)