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
Bug - Can't select an option in autocomplete IE 11 #3351
I'm referring to selecting by clicking , i've tried changing the md-option to mat-option but i've encounter an error (see image). I'm still looking for the cause.
@djleonskennedy@benjamin-wilson . If you are looking for a short term solution here is what I am doing. Needed this for production and the merge is taking longer then I expected.
@angular/material/@angular/material.es5.js.
Change this one section
FROM:
MdAutocompleteTrigger.prototype._handleBlur = function (newlyFocusedTag) {
this._onTouched();
// Only emit blur event if the new focus is *not* on an option.
if (newlyFocusedTag !== 'MD-OPTION') {
this._blurStream.next(null);
}
};
TO:
MdAutocompleteTrigger.prototype._handleBlur = function(newlyFocusedTag) {
this._onTouched();
if (newlyFocusedTag == null) {
newlyFocusedTag = document.activeElement.className.indexOf('mat-option') >= 0 ? 'MD-OPTION' : '';
}
// Only emit blur event if the new focus is *not* on an option.
if (newlyFocusedTag !== 'MD-OPTION') { //newlyFocusedTag !== 'MD-OPTION'
this._blurStream.next(null);
}
};
Activity
crisbeto commentedon Mar 1, 2017
Are you talking about selecting by click or with the keyboard? The click issue should be resolved by #3188.
fix(autocomplete): unable to click to select items in IE
allen-gopico commentedon Mar 2, 2017
I'm referring to selecting by clicking , i've tried changing the md-option to mat-option but i've encounter an error (see image). I'm still looking for the cause.

crisbeto commentedon Mar 2, 2017
The
mat-prefix is opt-in,md-is the one that is on by default. As for the clicking issue, it'll be resolved by #3188.Only1MrAnderson commentedon Mar 14, 2017
@crisbeto When do you anticipate the pull request will be merged?
djleonskennedy commentedon Mar 15, 2017
Please clarify, when it will be merged, its very critical issue
fix(autocomplete): unable to click to select items in IE
fix(autocomplete): unable to click to select items in IE
benjamin-wilson commentedon Mar 27, 2017
Looks like it's pending review from @kara, this is a critical issue for us as well.
Only1MrAnderson commentedon Mar 30, 2017
@djleonskennedy @benjamin-wilson . If you are looking for a short term solution here is what I am doing. Needed this for production and the merge is taking longer then I expected.
@angular/material/@angular/material.es5.js.
Change this one section
FROM:
TO:
fix(autocomplete): unable to click to select items in IE
fix(autocomplete): unable to click to select items in IE
fix(autocomplete): unable to click to select items in IE
fix(autocomplete): unable to click to select items in IE
fix(autocomplete): unable to click to select items in IE (#3188)
vinaykumaremmadi commentedon May 18, 2018
Thanks...by changing the code in @angular/material/@angular/material.es5.js.
It worked
vinaykumaremmadi commentedon May 18, 2018
how to update material component..instead of changing it manually.
angular-automatic-lock-bot commentedon Sep 8, 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.