From 436139b03c055607dabd47f724811b577dba2b7a Mon Sep 17 00:00:00 2001 From: Esteban Marin Date: Fri, 8 Feb 2019 12:16:55 +0100 Subject: [PATCH] fix(input): input not focused on click in IE if clicked outside of the native input element fixes #15093 --- src/lib/form-field/form-field-input.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/form-field/form-field-input.scss b/src/lib/form-field/form-field-input.scss index f1c9019f34b4..c0d37322340f 100644 --- a/src/lib/form-field/form-field-input.scss +++ b/src/lib/form-field/form-field-input.scss @@ -89,6 +89,12 @@ // happen, however it's possible to do it when clicking on a disabled input (see #13479). @include user-select(none); + &:-ms-input-placeholder { + // fix IE11 not able to focus programmatically with css style -ms-user-select: none + // see https://github.com/angular/material2/issues/15093 + -ms-user-select: text; + } + // Delay the transition until the label has animated about a third of the way through, in // order to prevent the placeholder from overlapping for a split second. transition: color $swift-ease-out-duration $swift-ease-out-duration / 3