We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f87d505 commit fa51ef8Copy full SHA for fa51ef8
src/material-experimental/mdc-form-field/form-field.ts
@@ -211,9 +211,10 @@ export class MatFormField
211
}
212
set appearance(value: MatFormFieldAppearance) {
213
const oldValue = this._appearance;
214
- this._appearance = ['fill', 'outline'].includes(value)
215
- ? value
216
- : this._defaults?.appearance || DEFAULT_APPEARANCE;
+ this._appearance =
+ value === 'fill' || value === 'outline'
+ ? value
217
+ : this._defaults?.appearance || DEFAULT_APPEARANCE;
218
if (this._appearance === 'outline' && this._appearance !== oldValue) {
219
this._refreshOutlineNotchWidth();
220
0 commit comments