Skip to content

MdInput - Placeholder does not float when using formControl setValue() #2441

Closed
@brunopereira27

Description

@brunopereira27

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Placeholder should be floating over input when setting the input value using setValue of its formControl.

What is the current behavior?

When I use setValue, the input contains the value set and the placeholder overlays the value, without floating over it. If I enter a text manually just after using setValue, the placeholder goes to the right place.

What are the steps to reproduce?

Here's a plunker that reproduces the issue:
http://plnkr.co/edit/huUsxFmbFKSZuCG92EmQ?p=preview

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

Angular: 2.3.1
material: git+https://github.com/angular/material2-builds.git but also tested on 2.0.0-beta1
Browser: Chromium 55.0.2883.87
Os: Chromium 55.0.2883.87

Metadata

Metadata

Assignees

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