Skip to content

Commit d67dad6

Browse files
authored
fix(material/chips): Make MatChipInputEvent.chipInput required. (#23692)
BREAKING CHANGE: `MatChipInputEvent.chipInput` is now a required property.
1 parent 7a6549f commit d67dad6

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

src/material-experimental/mdc-chips/chip-input.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,8 @@ export interface MatChipInputEvent {
3737
/** The value of the input. */
3838
value: string;
3939

40-
/**
41-
* Reference to the chip input that emitted the event.
42-
* @breaking-change 13.0.0 This property will be made required.
43-
*/
44-
chipInput?: MatChipInput;
40+
/** Reference to the chip input that emitted the event. */
41+
chipInput: MatChipInput;
4542
}
4643

4744
// Increasing integer for generating unique ids.

src/material/chips/chip-input.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,8 @@ export interface MatChipInputEvent {
3535
/** The value of the input. */
3636
value: string;
3737

38-
/**
39-
* Reference to the chip input that emitted the event.
40-
* @breaking-change 13.0.0 This property will be made required.
41-
*/
42-
chipInput?: MatChipInput;
38+
/** Reference to the chip input that emitted the event. */
39+
chipInput: MatChipInput;
4340
}
4441

4542
// Increasing integer for generating unique ids.

tools/public_api_guard/material/chips.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export class MatChipInput implements MatChipTextControl, OnChanges, OnDestroy, A
171171

172172
// @public
173173
export interface MatChipInputEvent {
174-
chipInput?: MatChipInput;
174+
chipInput: MatChipInput;
175175
// @deprecated
176176
input: HTMLInputElement;
177177
value: string;

0 commit comments

Comments
 (0)