Skip to content

Commit fa51ef8

Browse files
committed
fix(material-experimental/mdc-form-field): address feedback
1 parent f87d505 commit fa51ef8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/material-experimental/mdc-form-field/form-field.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,10 @@ export class MatFormField
211211
}
212212
set appearance(value: MatFormFieldAppearance) {
213213
const oldValue = this._appearance;
214-
this._appearance = ['fill', 'outline'].includes(value)
215-
? value
216-
: this._defaults?.appearance || DEFAULT_APPEARANCE;
214+
this._appearance =
215+
value === 'fill' || value === 'outline'
216+
? value
217+
: this._defaults?.appearance || DEFAULT_APPEARANCE;
217218
if (this._appearance === 'outline' && this._appearance !== oldValue) {
218219
this._refreshOutlineNotchWidth();
219220

0 commit comments

Comments
 (0)