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 9f6aa84 commit fbf28d9Copy full SHA for fbf28d9
src/lib/form-field/form-field.ts
@@ -148,6 +148,11 @@ export class MatFormField extends _MatFormFieldMixinBase
148
return this._appearance || this._defaultOptions && this._defaultOptions.appearance || 'legacy';
149
}
150
set appearance(value: MatFormFieldAppearance) {
151
+ // If we're switching to `outline` from another appearance, we have to recalculate the gap.
152
+ if (value !== this._appearance && value === 'outline') {
153
+ this._initialGapCalculated = false;
154
+ }
155
+
156
this._appearance = value;
157
158
_appearance: MatFormFieldAppearance;
0 commit comments