From 8ec3a190dfe829008ebff5141329f6309597da9b Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Tue, 20 Dec 2016 23:52:10 +0200 Subject: [PATCH] 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. --- src/lib/input/input-container.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/input/input-container.scss b/src/lib/input/input-container.scss index 28c6086e594..4e9a82c4080 100644 --- a/src/lib/input/input-container.scss +++ b/src/lib/input/input-container.scss @@ -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 & {