File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
material-experimental/mdc-input Expand file tree Collapse file tree 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';
2020 exportAs : 'matInput' ,
2121 host : {
2222 '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' ,
2327 '[class.mat-input-server]' : '_isServer' ,
2428 '[class.mat-mdc-textarea-input]' : '_isTextarea()' ,
2529 // 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 =
7171 /**
7272 * @breaking -change 8.0.0 remove .mat-form-field-autofill-control in favor of AutofillMonitor.
7373 */
74- 'class' : 'mat-input-element mat-form-field-autofill-control' ,
74+ '[class.mat-form-field-autofill-control]' : 'true' ,
75+ '[class.mat-input-element]' : 'true' ,
7576 '[class.mat-input-server]' : '_isServer' ,
7677 // Native input properties that are overwritten by Angular inputs need to be synced with
7778 // the native input element. Otherwise property bindings for those don't work.
You can’t perform that action at this time.
0 commit comments