-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Incorrect initial placeholder position after update to beta.10 #6849
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
Comments
I create a plunker, but there it works :-( |
#5692 changed input to use |
Does not work too!!! |
I also realized that the change in conta.descricao do not appear in ngOnChanges, only in writeValue |
@mmalerba I am having this issue as well and the data is patched/set after it is received from the server, the form is setup with blank values at first. But even after being added to the form, it is showing up in the inputs, the placeholder does not move till you click into the input. |
@Tempus35 can you reproduce either? Here's a starter template: http://plnkr.co/edit/jZoIp0f9R4Krrm33w8VR?p=preview |
@willshowell http://plnkr.co/edit/hTVZbkIUChw6SgTWDRFC?p=preview it appears to be when you do what I am doing in the plunker with making a new control or in the case of the component in the code I am working on, a form group. |
Yep, this is due to @crisbeto is there a way for us to detect if they give us a completely new |
@mmalerba Another place this is an issue is on login forms, where the input might be filled in via a password manager. When the password manager fills in the inputs the placeholder is not moving up as it once did. |
@mmalerba it should be possible to define our own |
To fix the problem I simply used the setValue function of the formControl inside the set method:
|
@crisbeto That works for |
Not without defining our own directive that looks for |
Ok, so I see a couple ways we could deal with this:
|
@kara do you have any input on this? |
I'm still seeing this with |
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:
When init the component the placeholder is being shown over the content. After the focus it returns to normal
What is the expected behavior?
Placeholder showed in normal position since init
What is the current behavior?
What are the steps to reproduce?
Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: https://goo.gl/DlHd6U
What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular4, Material 2.0.0-beta.10, browser Safari
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: