Skip to content

Autocomplete panel doesn't close when an option click #5165

@Stas-tolpekin

Description

@Stas-tolpekin

Bug, feature request, or proposal:

Bug

What is the expected behavior?

After I click on an option (using mouse cursor) the autocomplete suggestion panel should be closed.

What is the current behavior?

When I click on an option (using mouse cursor) the autocomplete suggestion panel closing and immediately opening again. This bug occurs only in Internet Explorer (I tested on version 11).

What are the steps to reproduce?

Plunker:
https://plnkr.co/edit/7zAjuhQJdibmPCaLsulm

Use Internet Explorer 11.

  1. Select option in 'State1' using the mouse cursor.
  2. Input 'State2' is blocked by 'State1'

Also, this bug can be reproduced on official documentation
https://material.angular.io/components/component/autocomplete

What is the use-case or motivation for changing an existing behavior?

I have two autocomplete input. when user select option in one input, the application should do focus on the other input programmatically. With this bug, when user select option in first input, application do focus on the other input, but the suggestion panel of first input stays opened. In result, a user sees two suggestion panels for each input.

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

Angular 4.2.2
Material 2.0.0-beta.6
OS Windows 10 (build 15063.0)
TypeScript 2.3.4
Internet Explorer 11

Is there anything else we should know?

In Chrome, Edge and Firefox this bug does not reproduce.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions