-
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 not hidden when formControl value changes with emitEvent: false #8982
Comments
Same here. |
…ut emitting an event Fixes the input's floating label state not being updated when the consumer patches the form control's value without emitting an event. Fixes angular#8982.
…ut emitting an event Fixes the input's floating label state not being updated when the consumer patches the form control's value without emitting an event. Fixes #8982.
…ut emitting an event (angular#9260) Fixes the input's floating label state not being updated when the consumer patches the form control's value without emitting an event. Fixes angular#8982.
I ran into a similar issue, and this is the workaround I'm using until I can come up with something better.
In my global stylesheet, I applied these styles
|
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?
Placeholder should hide if input value is not empty
What is the current behavior?
Placeholder overlaps the content of input

What are the steps to reproduce?
floatPlaceholder="never"
orfloatLabel="never"
(as floatPlaceholder is deprecated){emitEvent: false}
https://stackblitz.com/edit/angular-material2-issue-gvg3yu
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular: 5.0
Material: 5.0
Ubuntu 16.04
Chrome Version 61.0.3163.100
Firefox Quantum Version 57
Is there anything else we should know?
It can be related to this issue: #7066
The text was updated successfully, but these errors were encountered: