Closed
Description
Bug, feature request, or proposal:
What is the expected behavior?
Autocomplete panel should stay closed regardless of whether it has the focus when the user switches browser tab.
What is the current behavior?
Autocomplete panel reopens itself after the user switches browser tab, without user's interaction. See steps below.
What are the steps to reproduce?
- Go to https://material.angular.io/components/autocomplete/overview
- Select any option on any drop down. Keep the focus on the same drop down.
- Notice that the autocomplete panel has closed.
- Switch to another browser tab.
- Switch back to the previous browser tab.
- Notice that the autocomplete panel has been opened again, without user interaction.
Note that it works as expected if the user remove focus from the drop down in step 2). Switching tab doesn't reopen the autocomplete panel.
What is the use-case or motivation for changing an existing behavior?
It's confusing for the user when the autocomplete panel reopens itself again without user's interaction. The user selected an option. The autocomplete panel state should be closed.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 6.4.1 (the one running on material.angular.io), Linux, latest Chrome.