File tree 2 files changed +6
-1
lines changed
material-experimental/mdc-input
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ import {MatInput as BaseMatInput} from '@angular/material/input';
20
20
exportAs : 'matInput' ,
21
21
host : {
22
22
'class' : 'mat-mdc-input-element mdc-text-field__input' ,
23
+ // The BaseMatInput parent class adds `mat-input-element` and `mat-form-field-autofill-control`
24
+ // to the CSS classlist, but this should not be added for this MDC equivalent input.
25
+ '[class.mat-form-field-autofill-control]' : 'false' ,
26
+ '[class.mat-input-element]' : 'false' ,
23
27
'[class.mat-input-server]' : '_isServer' ,
24
28
'[class.mat-mdc-textarea-input]' : '_isTextarea()' ,
25
29
// Native input properties that are overwritten by Angular inputs need to be synced with
Original file line number Diff line number Diff line change @@ -71,7 +71,8 @@ const _MatInputMixinBase: CanUpdateErrorStateCtor & typeof MatInputBase =
71
71
/**
72
72
* @breaking -change 8.0.0 remove .mat-form-field-autofill-control in favor of AutofillMonitor.
73
73
*/
74
- 'class' : 'mat-input-element mat-form-field-autofill-control' ,
74
+ '[class.mat-form-field-autofill-control]' : 'true' ,
75
+ '[class.mat-input-element]' : 'true' ,
75
76
'[class.mat-input-server]' : '_isServer' ,
76
77
// Native input properties that are overwritten by Angular inputs need to be synced with
77
78
// the native input element. Otherwise property bindings for those don't work.
You can’t perform that action at this time.
0 commit comments