Skip to content

mdInput clear input button #3725

@itsJess1ca

Description

@itsJess1ca

Bug, feature request, or proposal:

Feature Request

What is the expected behavior?

When an mdInput text field has a value, there should be a clear (X) button on the right of the input to clear the text field.

What is the current behavior?

No button, user has to manually clear, or dev has to create another directive

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

I'm currently working on a search field, and expected the <input type="search" mdinput></input> to give users a clear button, as per the docs here https://material.io/guidelines/components/text-fields.html#text-fields-search-filter - however I'm either missing something, or it's not provided.

Which versions of Angular, Material, OS, 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