Description
Bug
What is the expected behavior?
I expect the placeholder to lift above the text when there is an input, even when done programmatically.
What is the current behavior?
The placeholder stays down when setting value of an input field programmatically through from.controls.
What are the steps to reproduce?
Create a form with the form builder, then set a value like this:
Code to reproduce:
this.form = this.fb.group({ 'email': [null] })
<md-input-container class="form-full-width"> <input md-input placeholder="Email address" [formControl]="form.controls['email']"> </md-input-container>
this.form.controls['email'].setValue("[email protected]");
What is the use-case or motivation for changing an existing behavior?
I want to be able to set a value of an input field and have it displayed right when i load some data.
Which versions of Angular, Material, OS, browsers are affected?
Angular cli 1.0.0-beta.25.5, material: ^2.0.0-beta.1, Angular version: ^2.3.1
Is there anything else we should know?
I may be doing stuff wrong, as i would expect this bug to be caught sooner? please excuse me if this bug has already been reported.
Kind regards Chris