Skip to content

AutoComplete value of number 0 #5363

@antangeles

Description

@antangeles

Bug, feature request, or proposal:

When selecting the value of the number 0 from a drop down list of numbers, the value 0 is not set. A user can manually type in 0.

What is the expected behavior?

When selecting the value of the number 0 from a drop down list of numbers, the value 0 is set

What is the current behavior?

When selecting the value of the number 0 from a drop down list of numbers, the value 0 is not set and has a blank value in the input field.

What are the steps to reproduce?

https://plnkr.co/edit/czRXKtRzVyb2WyYFkWyM?p=preview

Select 0. The input will remain empty.

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

Would like the ability to choose the number 0 as a value.

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

current angular, current material, tested on windows 10, chrome

Is there anything else we should know?

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaround

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions