Skip to content

Commit

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

BREAKING CHANGE: `MatChipInputEvent.chipInput` is now a required property.
  • Loading branch information
mmalerba authored Feb 4, 2022
1 parent 7a6549f commit d67dad6
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 d67dad6

Please sign in to comment.