Skip to content

Commit 2652532

Browse files
macjohnnyjelbourn
authored andcommitted
fix(input): no focus on click in IE if clicked outside native control (#15108)
Fixes #15093
1 parent 3787695 commit 2652532

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib/form-field/form-field-input.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@
8989
// happen, however it's possible to do it when clicking on a disabled input (see #13479).
9090
@include user-select(none);
9191

92+
&:-ms-input-placeholder {
93+
// fix IE11 not able to focus programmatically with css style -ms-user-select: none
94+
// see https://github.com/angular/material2/issues/15093
95+
-ms-user-select: text;
96+
}
97+
9298
// Delay the transition until the label has animated about a third of the way through, in
9399
// order to prevent the placeholder from overlapping for a split second.
94100
transition: color $swift-ease-out-duration $swift-ease-out-duration / 3

0 commit comments

Comments
 (0)