From f75715dc49b090948dd0b4f46d560252fa9109cb Mon Sep 17 00:00:00 2001 From: Vanessa Schmitt Date: Thu, 2 Apr 2020 10:58:39 -0700 Subject: [PATCH] fix(material-experimental/mdc-chips): support custom errorStateMatcher MatChipGrid should have an errorStateMatcher Input in order to be backwards compatible with the old non-mdc MatChipList. --- src/material-experimental/mdc-chips/chip-grid.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/material-experimental/mdc-chips/chip-grid.ts b/src/material-experimental/mdc-chips/chip-grid.ts index 436dae1bafbb..e72e1fa9d3a8 100644 --- a/src/material-experimental/mdc-chips/chip-grid.ts +++ b/src/material-experimental/mdc-chips/chip-grid.ts @@ -206,6 +206,9 @@ export class MatChipGrid extends _MatChipGridMixinBase implements AfterContentIn } protected _value: any; + /** An object used to control when error messages are shown. */ + @Input() errorStateMatcher: ErrorStateMatcher; + /** Combined stream of all of the child chips' blur events. */ get chipBlurChanges(): Observable { return merge(...this._chips.map(chip => chip._onBlur));