-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Input placeholder doesnt rise when set value after beta.10 #7066
Comments
I see the same behavior on forms rendered in a hidden but initialized component (and then revealed, as a step in a stepper), using |
@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 |
Don't work with emitEvent: false in beta.11. |
@vokk, could please reproduce it here: [plunk removed to avoid confusion] It worked for me. |
add setTimeout |
@devversion it doesnt work if value it set after component is initialized (setTimeout and button click) |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
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:

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
The text was updated successfully, but these errors were encountered: