Skip to content

In-built UI to clean model value #186

@fifonik

Description

@fifonik

It would be nice to be able to clean model value without additional buttons.
I like the way as it is implemented in ui-select: if allow-clear="true" specified, additional cross button is displayed on the right and if clicked the model value is cleared. Also, DEL key could be used for clearing model value if pressed.

I implemented this behaviour. Here is the demo:
http://plnkr.co/edit/842VHw?p=preview

Any chances it would be integrated into the directive?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions