Skip to content

Place holder issue with setValue #2613

Closed
@csyperski

Description

@csyperski

Bug, feature request, or proposal:

I am having an issue with Angular2's material components when a component is updated via setValue. Here is the plnkr....

https://embed.plnkr.co/lZhHJKBhuldUqzUt9Q18/

You can see that the value and the placeholder are both occupying the same space.

With the setTimeout, I'm emulated an ajax fetch that would populate the form asynchronously. Am I doing something wrong or is this a bug with ng2's material module or user error?

What is the expected behavior?

The placeholder text should move above the input field

What is the current behavior?

The placeholder text and the input text occupy the same space

What are the steps to reproduce?

https://embed.plnkr.co/lZhHJKBhuldUqzUt9Q18/

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

Expected end-user behaviour

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

Angular 2.4.1
angular/material 2.0.0-beta.1

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