Skip to content

Bug - Can't select an option in autocomplete IE 11 #3351

Closed

Description

@allen-gopico

Bug, feature request, or proposal:

Bug

What is the expected behavior?

When selecting an option in the auto complete , it should display the selected value in the text field

What is the current behavior?

When selecting an option in the auto complete, it does not display the selected value in the text field

What are the steps to reproduce?

  1. https://material.angular.io/components/component/autocomplete
  2. Go to example
  3. Type Ala
  4. Select Alabama

Which versions of Angular, Material, OS, browsers are affected?

IE 11

Activity

  1. crisbeto commented on Mar 1, 2017

    @crisbeto
    Member

    Are you talking about selecting by click or with the keyboard? The click issue should be resolved by #3188.

  2. added
    P2
    and removed
    P2
    on Mar 1, 2017
  3. added a commit that references this issue on Mar 1, 2017
    90a4439
  4. allen-gopico commented on Mar 2, 2017

    @allen-gopico
    Author

    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.
    image

  5. crisbeto commented on Mar 2, 2017

    @crisbeto
    Member

    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.

  6. Only1MrAnderson commented on Mar 14, 2017

    @Only1MrAnderson

    @crisbeto When do you anticipate the pull request will be merged?

  7. djleonskennedy commented on Mar 15, 2017

    @djleonskennedy

    Please clarify, when it will be merged, its very critical issue

  8. added 2 commits that reference this issue on Mar 16, 2017
    229392c
    83a5673
  9. benjamin-wilson commented on Mar 27, 2017

    @benjamin-wilson

    Looks like it's pending review from @kara, this is a critical issue for us as well.

  10. Only1MrAnderson commented on Mar 30, 2017

    @Only1MrAnderson

    @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);
            }
        };
    
  11. added 4 commits that reference this issue on Apr 12, 2017
    aa8cfa6
    56ac940
    b6ac2a9
    eeca900
  12. added a commit that references this issue on Apr 18, 2017
    78985b7
  13. vinaykumaremmadi commented on May 18, 2018

    @vinaykumaremmadi

    Thanks...by changing the code in @angular/material/@angular/material.es5.js.
    It worked

  14. vinaykumaremmadi commented on May 18, 2018

    @vinaykumaremmadi

    how to update material component..instead of changing it manually.

  15. angular-automatic-lock-bot commented on Sep 8, 2019

    @angular-automatic-lock-bot

    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.

  16. locked and limited conversation to collaborators on Sep 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions