From 46c91fdb83c03e63e15b19ad7c02478f49cae0d4 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Thu, 15 Dec 2016 10:42:07 +0100 Subject: [PATCH] fix(input): unable to focus input in IE 11 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 28c6086e5945..4e9a82c4080d 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 & {