From 1212bc7eaade4cfadbc9c18a48c466a9c00c8673 Mon Sep 17 00:00:00 2001 From: Miles Malerba Date: Tue, 5 Oct 2021 22:13:51 +0000 Subject: [PATCH] fix(material/chips): Make `MatChipInputEvent.chipInput` required. BREAKING CHANGE: `MatChipInputEvent.chipInput` is now a required property. --- src/material-experimental/mdc-chips/chip-input.ts | 7 ++----- src/material/chips/chip-input.ts | 7 ++----- tools/public_api_guard/material/chips.md | 2 +- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/material-experimental/mdc-chips/chip-input.ts b/src/material-experimental/mdc-chips/chip-input.ts index 0e6b52c98a8c..57b6b594f666 100644 --- a/src/material-experimental/mdc-chips/chip-input.ts +++ b/src/material-experimental/mdc-chips/chip-input.ts @@ -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. diff --git a/src/material/chips/chip-input.ts b/src/material/chips/chip-input.ts index 72d74072e629..f87ddc971ba8 100644 --- a/src/material/chips/chip-input.ts +++ b/src/material/chips/chip-input.ts @@ -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. diff --git a/tools/public_api_guard/material/chips.md b/tools/public_api_guard/material/chips.md index d630f0e0fba3..e582724d6fa9 100644 --- a/tools/public_api_guard/material/chips.md +++ b/tools/public_api_guard/material/chips.md @@ -188,7 +188,7 @@ export class MatChipInput implements MatChipTextControl, OnChanges, OnDestroy, A // @public export interface MatChipInputEvent { - chipInput?: MatChipInput; + chipInput: MatChipInput; // @deprecated input: HTMLInputElement; value: string;