Skip to content

Commit dca6ea3

Browse files
Superd22jelbourn
authored andcommitted
Fix(input): webkit autofill & floating placeholder (#1739)
- Fix webkit autofill would float placeholder even with floatingPlaceholder disabled. Closes #1694
1 parent 4af3cd3 commit dca6ea3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/input/input.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ md-input, md-textarea {
9090
// fire any events when a form auto-fill is occurring.
9191
// Once the autofill is committed, a change event happen and the regular md-input
9292
// classes take over to fulfill this behaviour.
93-
&:-webkit-autofill + .md-input-placeholder {
93+
// Assumes the autofill is non-empty.
94+
&:-webkit-autofill + .md-input-placeholder.md-float {
9495
@include md-input-placeholder-floating;
9596
}
9697
}

0 commit comments

Comments
 (0)