mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
Fix(input): webkit autofill & floating placeholder (#1739)
- Fix webkit autofill would float placeholder even with floatingPlaceholder disabled. Closes #1694
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user