Skip to content

Commit

Permalink
fix(material-experimental/mdc-form-field): address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalerba committed May 25, 2022
1 parent f87d505 commit fa51ef8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/material-experimental/mdc-form-field/form-field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,10 @@ export class MatFormField
}
set appearance(value: MatFormFieldAppearance) {
const oldValue = this._appearance;
this._appearance = ['fill', 'outline'].includes(value)
? value
: this._defaults?.appearance || DEFAULT_APPEARANCE;
this._appearance =
value === 'fill' || value === 'outline'
? value
: this._defaults?.appearance || DEFAULT_APPEARANCE;
if (this._appearance === 'outline' && this._appearance !== oldValue) {
this._refreshOutlineNotchWidth();

Expand Down

0 comments on commit fa51ef8

Please sign in to comment.