Skip to content

Commit 5ad5c57

Browse files
authored
refactor(material/form-field): fix incorrectly named mixin base constant (#22836)
With the recent changes to the mixins, a typo has sneaked into the form-field mixin logic. This commit fixes that.
1 parent e2633d1 commit 5ad5c57

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const outlineGapPadding = 5;
6161
* Boilerplate for applying mixins to MatFormField.
6262
* @docs-private
6363
*/
64-
const _MatFormFieldnBase = mixinColor(class {
64+
const _MatFormFieldBase = mixinColor(class {
6565
constructor(public _elementRef: ElementRef) {}
6666
}, 'primary');
6767

@@ -147,7 +147,7 @@ export const MAT_FORM_FIELD = new InjectionToken<MatFormField>('MatFormField');
147147
]
148148
})
149149

150-
export class MatFormField extends _MatFormFieldnBase
150+
export class MatFormField extends _MatFormFieldBase
151151
implements AfterContentInit, AfterContentChecked, AfterViewInit, OnDestroy, CanColor {
152152

153153
/**

tools/public_api_guard/material/form-field.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export declare class MatError {
2525
static ɵfac: i0.ɵɵFactoryDeclaration<MatError, [{ attribute: "aria-live"; }, null]>;
2626
}
2727

28-
export declare class MatFormField extends _MatFormFieldnBase implements AfterContentInit, AfterContentChecked, AfterViewInit, OnDestroy, CanColor {
28+
export declare class MatFormField extends _MatFormFieldBase implements AfterContentInit, AfterContentChecked, AfterViewInit, OnDestroy, CanColor {
2929
_animationsEnabled: boolean;
3030
_appearance: MatFormFieldAppearance;
3131
_connectionContainerRef: ElementRef;

0 commit comments

Comments
 (0)