File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ $mat-input-underline-disabled-background-image:
105105 // Assumes the autofill is non-empty.
106106 & :-webkit-autofill + .mat-input-placeholder-wrapper .mat-float {
107107 @include mat-input-placeholder-floating ;
108+ transition : none ;
108109 }
109110
110111 // Note that we can't use something like visibility: hidden or
@@ -160,6 +161,12 @@ $mat-input-underline-disabled-background-image:
160161 }
161162}
162163
164+ // Disable the placeholder animation when the input is not empty (this prevents placeholder
165+ // animating up when the value is set programmatically).
166+ .mat-input-placeholder :not (.mat-empty ) {
167+ transition : none ;
168+ }
169+
163170// Used to hide the placeholder overflow on IE, since IE doesn't take transform into account when
164171// determining overflow.
165172.mat-input-placeholder-wrapper {
You can’t perform that action at this time.
0 commit comments