Skip to content

Commit

Permalink
fix(input): unable to focus input in IE 11 (#2233)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
crisbeto authored and jelbourn committed Dec 20, 2016
1 parent b967712 commit 8ec3a19
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/input/input-container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 & {
Expand Down

0 comments on commit 8ec3a19

Please sign in to comment.