mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(input): unable to focus input in IE 11 (#2233)
Fixes being unable to focus an input in IE 11 by clicking on the label. This was due to the style for hiding the placeholder which, for some reason, ended up disabling the input altogether if it didn't have a value.
This commit is contained in:
committed by
Jeremy Elbourn
parent
b967712399
commit
8ec3a190df
@@ -16,7 +16,10 @@ md-input-container {
|
||||
|
||||
.md-input-element {
|
||||
&::placeholder {
|
||||
visibility: hidden;
|
||||
// Note that we can't use something like visibility: hidden or
|
||||
// display: none, because IE ends up preventing the user from
|
||||
// focusing the input altogether.
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
.md-end & {
|
||||
|
||||
Reference in New Issue
Block a user