Skip to content

Commit 8ec3a19

Browse files
crisbetojelbourn
authored andcommitted
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.
1 parent b967712 commit 8ec3a19

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib/input/input-container.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ md-input-container {
1616

1717
.md-input-element {
1818
&::placeholder {
19-
visibility: hidden;
19+
// Note that we can't use something like visibility: hidden or
20+
// display: none, because IE ends up preventing the user from
21+
// focusing the input altogether.
22+
color: transparent;
2023
}
2124

2225
.md-end & {

0 commit comments

Comments
 (0)