Skip to content

fix(input): input not focused on click in IE if clicked outside of the native input element #15108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/lib/form-field/form-field-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down