Skip to content

feat(md-select) - enable to clear the value (unselect) #3110

@jefersonestevo

Description

@jefersonestevo

Bug, feature request, or proposal:

feat

What is the expected behavior?

In a md-select, let the user create a option to "unselect" the item value.

What is the current behavior?

When we add a empty option with value="" (ng-value="undefined" or ng-value="null"), the placeholder act as if we've selected an option

What are the steps to reproduce?

After selecting one option on md-select, try to "unselect" and revert it to the "empty" state

Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: http://plnkr.co/edit/o077B6uEiiIgkC0S06dd
http://plnkr.co/edit/e8Qoaq7M1ubiWHpVKctu?p=preview

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

Some non-required select on my applications need to let the user "unselect" the options

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

@angular/material: 2.0.0-beta.1

Is there anything else we should know?

Metadata

Metadata

Assignees

Labels

featureThis issue represents a new feature or feature request rather than a bug or bug fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions