Skip to content

MatAutoComplete to have a button to clear the input #11384

@weijyewang

Description

@weijyewang

Bug, feature request, or proposal:

Feature request

What is the expected behavior?

To have a small button at the end of the input element (maybe a small 'x') that clears the input and show all the options in the dropdown panel again.

What is the current behavior?

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

To improve UX. Without a button to clean the input, a user have to focus on the input element and clear all the text manually. The feature requested could save the user effort in populating the full option list again after entering some filtered text.

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

Is there anything else we should know?

Metadata

Metadata

Assignees

No one assigned

    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