You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Input looks ready for input but does not have curosr #15093
P4A relatively minor issue that is not relevant to core functionshelp wantedLabel noting an issue which the team is looking for contribution from the community to fixie11This issue is specific to Internet Explorer 11
@ricardosaracino the issue only occurs if the placeholder attribute is set in the input.
As a workaround until #15108 is merged, you can add the following css to your global styles
/* workaround for https://github.com/angular/material2/issues/15093 */:-ms-input-placeholder.mat-input-element{-ms-user-select: text !important;}
P4A relatively minor issue that is not relevant to core functionshelp wantedLabel noting an issue which the team is looking for contribution from the community to fixie11This issue is specific to Internet Explorer 11
Activity
ricardosaracino commentedon Feb 6, 2019
Got it reproduced with minimal code
https://github.com/ricardosaracino/angular7-ie-issue
macjohnny commentedon Feb 7, 2019
@ricardosaracino Here is your example, working on stackblitz:

https://stackblitz.com/edit/github-nlkqcg?file=src%2Fapp%2Fcomponents%2Flogin%2Flogin.component.html
The issue occurs e.g. when exactly clicking the bottom line of the input or simply in an area beyond the extent of the actual
inputelement.Here is a minimal example: https://stackblitz.com/edit/angular-material2-issue-me7v5p?file=app/app.component.htmlHowever, I was not able to reproduce the issue with the minimal example.
Here is a minimal example with the most recent material version
7.3.1:https://angular-material2-issue-d9atfa.stackblitz.io/
The issue also occurs here.
The issue only occurs for
matInputwith aplaceholderattributeThe issue arises due to
https://github.com/angular/material2/blob/a4c235aa12c5c9a968c6b21dfd7ff6bec8df03a4/src/lib/form-field/form-field-input.scss#L90
which results in
and this prevents focussing the field programmatically in
https://github.com/angular/material2/blob/a4c235aa12c5c9a968c6b21dfd7ff6bec8df03a4/src/lib/input/input.ts#L313-L315
invoked by
https://github.com/angular/material2/blob/a4c235aa12c5c9a968c6b21dfd7ff6bec8df03a4/src/lib/form-field/form-field.html#L2-L3
See this example https://codepen.io/macjohnny-zh/details/WPXWvy
(Code: https://codepen.io/macjohnny-zh/pen/WPXWvy)
See also https://stackoverflow.com/a/54572888
Solution: temporarily set
-ms-user-select: autobefore executinginputElement.focus()macjohnny commentedon Feb 8, 2019
@ricardosaracino the issue only occurs if the
placeholderattribute is set in the input.As a workaround until #15108 is merged, you can add the following css to your global styles
See the working example here: https://angular-material2-issue-lznbpw.stackblitz.io
(https://stackblitz.com/edit/angular-material2-issue-lznbpw?file=styles.scss)
fix(input): no focus on click in IE if clicked outside native control (…
angular-automatic-lock-bot commentedon Sep 10, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.