Skip to content

Autocompleted mdInput with undefined ngModel shows "undefined" instead of empty text #3529

Closed

Description

Bug, feature request, or proposal:

bug

What is the expected behavior?

Autocompleted mdInput binded with undefined ngModel should display empty text instead of "undefined".

What is the current behavior?

screen shot 2017-03-09 at 11 44 13
Regular mdInput shows empty text in case of ngModel is undefined.
Autocompleted mdInput binded with undefined ngModel shows "undefined".

What are the steps to reproduce?

Here is the plunker with description
http://plnkr.co/edit/5jrByGdNel0saoQe7obm

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

All mdInput should behave consistently.

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

Tested with @angular/material 2.0.0-beta.2

Is there anything else we should know?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions