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 79797a4 commit f87d505Copy full SHA for f87d505
src/material-experimental/mdc-form-field/form-field.ts
@@ -211,7 +211,9 @@ export class MatFormField
211
}
212
set appearance(value: MatFormFieldAppearance) {
213
const oldValue = this._appearance;
214
- this._appearance = value || this._defaults?.appearance || DEFAULT_APPEARANCE;
+ this._appearance = ['fill', 'outline'].includes(value)
215
+ ? value
216
+ : this._defaults?.appearance || DEFAULT_APPEARANCE;
217
if (this._appearance === 'outline' && this._appearance !== oldValue) {
218
this._refreshOutlineNotchWidth();
219
0 commit comments