Fix(input): webkit autofill & floating placeholder (#1739)

- Fix webkit autofill would float placeholder even with
floatingPlaceholder disabled.

Closes #1694
This commit is contained in:
David
2016-11-08 22:40:40 +01:00
committed by Jeremy Elbourn
parent 4af3cd39f9
commit dca6ea3a02
+2 -1
View File
@@ -90,7 +90,8 @@ md-input, md-textarea {
// fire any events when a form auto-fill is occurring.
// Once the autofill is committed, a change event happen and the regular md-input
// classes take over to fulfill this behaviour.
&:-webkit-autofill + .md-input-placeholder {
// Assumes the autofill is non-empty.
&:-webkit-autofill + .md-input-placeholder.md-float {
@include md-input-placeholder-floating;
}
}