Skip to content

Commit

Permalink
fix(material/chips): Make MatChipInputEvent.chipInput required. (an…
Browse files Browse the repository at this point in the history
…gular#23692)

BREAKING CHANGE: `MatChipInputEvent.chipInput` is now a required property.
  • Loading branch information
mmalerba authored and amysorto committed Feb 15, 2022
1 parent c83295b commit f3933f1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
7 changes: 2 additions & 5 deletions src/material-experimental/mdc-chips/chip-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,8 @@ export interface MatChipInputEvent {
/** The value of the input. */
value: string;

/**
* Reference to the chip input that emitted the event.
* @breaking-change 13.0.0 This property will be made required.
*/
chipInput?: MatChipInput;
/** Reference to the chip input that emitted the event. */
chipInput: MatChipInput;
}

// Increasing integer for generating unique ids.
Expand Down
7 changes: 2 additions & 5 deletions src/material/chips/chip-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,8 @@ export interface MatChipInputEvent {
/** The value of the input. */
value: string;

/**
* Reference to the chip input that emitted the event.
* @breaking-change 13.0.0 This property will be made required.
*/
chipInput?: MatChipInput;
/** Reference to the chip input that emitted the event. */
chipInput: MatChipInput;
}

// Increasing integer for generating unique ids.
Expand Down
2 changes: 1 addition & 1 deletion tools/public_api_guard/material/chips.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export class MatChipInput implements MatChipTextControl, OnChanges, OnDestroy, A

// @public
export interface MatChipInputEvent {
chipInput?: MatChipInput;
chipInput: MatChipInput;
// @deprecated
input: HTMLInputElement;
value: string;
Expand Down

0 comments on commit f3933f1

Please sign in to comment.