Firefox md-input placeholder text doesn't appear above user input #342
Labels
help wanted
The team would appreciate a PR from the community to address this issue
P1
Impacts a large percentage of users; if a workaround exists it is partial or overly painful
Milestone
Bug
Run the demo app in Firefox, or go to https://material2-app.firebaseapp.com/ . Click on a text field with placeholder text. The placeholder text will turn blue but remain in the same place. Start typing and the placeholder text will disappear entirely.
Chrome behaves correctly; when the text field becomes focused, the placeholder text should animate above the entered text.
Behavior is identical in Firefox 45 on Mac OS X 10.11, Windows 10, and Android. Running against material2 head.
Commenting out the "input:-webkit-autofill + .md-input-placeholder" selector in input.scss (https://github.com/angular/material2/blob/master/src/components/input/input.scss#L140) makes Firefox work as expected. Apparently Firefox believes "input:-webkit-autofill" is invalid CSS and won't apply any selectors that contain it.
The text was updated successfully, but these errors were encountered: