Skip to content

Autocomplete list doesnt reset in MatChipList after adding a Chip in example #11291

Closed
@CurtisDS

Description

@CurtisDS

Bug, feature request, or proposal:

Bug

What is the expected behavior?

After using autocomplete to add a chip the next time the user clicks on the input field it should show the full list of options again.

What is the current behavior?

After using autocomplete to add a chip the next time the user clicks on the input field it only shows the options that were shown previously. In order to see all options the user needs to press space and then backspace.

What are the steps to reproduce?

Go to the autocomplete example from on material.angular.io. Or to this stackblitz.

Steps:
Click in the input box (all options will be shown).
Select an option, for example Orange
Either press down on the keyboard or remove focus from the control by click outside and refocus it to open the drop down

Result:
Only Orange is shown as an option even though no text is in the input field to filter the list.

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

It seems like a poor UI choice. It gives inconsistent results for the same actions.

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

Material 6.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentdocsThis issue is related to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions