Skip to content

Commit

Permalink
fix(material-experimental/mdc-chips): support custom errorStat… (#18974)
Browse files Browse the repository at this point in the history
MatChipGrid should have an errorStateMatcher Input in order to be
backwards compatible with the old non-mdc MatChipList.
  • Loading branch information
vanessanschmitt authored and mmalerba committed Apr 14, 2020
1 parent 977c605 commit 58abf23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/material-experimental/mdc-chips/chip-grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ export class MatChipGrid extends _MatChipGridMixinBase implements AfterContentIn
}
protected _value: Array<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<MatChipEvent> {
return merge(...this._chips.map(chip => chip._onBlur));
Expand Down

0 comments on commit 58abf23

Please sign in to comment.