File tree 1 file changed +7
-0
lines changed
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:
105
105
// Assumes the autofill is non-empty.
106
106
& :-webkit-autofill + .mat-input-placeholder-wrapper .mat-float {
107
107
@include mat-input-placeholder-floating ;
108
+ transition : none ;
108
109
}
109
110
110
111
// Note that we can't use something like visibility: hidden or
@@ -160,6 +161,12 @@ $mat-input-underline-disabled-background-image:
160
161
}
161
162
}
162
163
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
+
163
170
// Used to hide the placeholder overflow on IE, since IE doesn't take transform into account when
164
171
// determining overflow.
165
172
.mat-input-placeholder-wrapper {
You can’t perform that action at this time.
0 commit comments