Skip to content

Commit 96fd585

Browse files
fix(material-experimental/mdc-chips): support custom errorStat… (#18974)
MatChipGrid should have an errorStateMatcher Input in order to be backwards compatible with the old non-mdc MatChipList.
1 parent 23161d7 commit 96fd585

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,9 @@ export class MatChipGrid extends _MatChipGridMixinBase implements AfterContentIn
206206
}
207207
protected _value: Array<any> = [];
208208

209+
/** An object used to control when error messages are shown. */
210+
@Input() errorStateMatcher: ErrorStateMatcher;
211+
209212
/** Combined stream of all of the child chips' blur events. */
210213
get chipBlurChanges(): Observable<MatChipEvent> {
211214
return merge(...this._chips.map(chip => chip._onBlur));

0 commit comments

Comments
 (0)