Components: Input placeholder doesnt rise when set value after beta.10

Created on 14 Sep 2017  路  10Comments  路  Source: angular/components

Bug, feature request, or proposal:

Bug

What is the expected behavior?

The placeholder should be placed above the input.

What is the current behavior?

When set value with { emitEvent: false }, the placeholder however, stays in the field, overlapping the value. See screenshot below:
input

What are the steps to reproduce?

Plunker template: https://plnkr.co/edit/sJzdfPYWoENNXHcQcLwG?p=preview

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

Angular 4.3.6
Angular Material 2.0.0-beta.10
Windows 10
Typescript 2.5.2

Most helpful comment

Looks like a fix was committed yesterday, waiting for my local to catch up to it on material2-builds. Can't wait for beta-11!

All 10 comments

Related to #6837 (with PR #6839).

I see the same behavior on forms rendered in a hidden but initialized component (and then revealed, as a step in a stepper), using 2.0.0-beta.11-f6c9172.

@jlkeiper same issue! I have followed the workaround that have pointed out @julianobrasil here and I solved

@gise88 thanks, I was hoping to allow the component to initialize (makes a few calls while setting things up), but realize that may not be necessary if I pull it up a level. I'll try this out!

Looks like a fix was committed yesterday, waiting for my local to catch up to it on material2-builds. Can't wait for beta-11!

Don't work with emitEvent: false in beta.11.

@vokk, could please reproduce it here: [plunk removed to avoid confusion]

It worked for me.

@DevVersion it doesnt work if value it set after component is initialized (setTimeout and button click)
check examples above created by @Knoxvillekm

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dzrust picture dzrust  路  3Comments

shlomiassaf picture shlomiassaf  路  3Comments

MurhafSousli picture MurhafSousli  路  3Comments

julianobrasil picture julianobrasil  路  3Comments

michaelb-01 picture michaelb-01  路  3Comments