Skip to content

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

Closed

Description

@molcik

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?

Activity

  1. added a commit that references this issue on Mar 9, 2017
    793e72c
  2. self-assigned this
    on Mar 9, 2017
  3. added
    P3
    on Mar 9, 2017
  4. added a commit that references this issue on Mar 10, 2017
    675c9df
  5. added a commit that references this issue on Apr 16, 2017
    ac476e4
  6. angular-automatic-lock-bot commented on Sep 5, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  7. locked and limited conversation to collaborators on Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions