Skip to content

md-select deselects when the value is 0 (instead of selecting the item with value of zero) #5031

@geelus

Description

@geelus

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Selecting the value 0

What is the current behavior?

Deselects everything

What are the steps to reproduce?

One your changes for version beta 6 is:
"select: allow option with undefined or null value to clear selection (#3141) (13524c1), closes #3110 #2634"
This causes the issue of deselecting if the value is 0. So it deselects the mdselect if it's null or undefined or zero.
Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: https://goo.gl/DlHd6U

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

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

beta 6

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