Bug
Place holder should not float on focus.
Placeholder floats on focus.
using master latest, this does not work to stop floating placeholder and it should based on docs:
```
Try with [shouldPlaceholderFloat]="false"
Without [] you pass false as a string.
Also, you should use floatPlaceholder from mat-form-field instead
https://material.angular.io/components/form-field/overview#floating-placeholder
Closing as this should be managed through mat-form-field
@Wykks I don't think [shouldPlaceholderFloat]="false" works. Not sure why it is still in the documentation: https://material.angular.io/components/input/api
shouldPlaceholderFloat: boolean is deprecated. Not sure if there are any other alternatives..
You can use floatLabel: FloatLabelType now.
What are the possible values of FloatLabelType ?
@trsh
'always' | 'never' | 'auto'
https://github.com/angular/material2/blob/d6fec3573cbc854d5bf67d920c5b0f8a6eef0c86/src/lib/core/label/label-options.ts#L16
Should be added to docs properly
For anyone curios, if you actualy dont want floating placeholder OR floating label, use this:
<mat-form-field floatLabel="never">
<input placeholder="My Placeholder" matInput>
</mat-form-field>
Very badly described in the docs, sadly!
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._
Most helpful comment
Try with
[shouldPlaceholderFloat]="false"Without
[]you passfalseas a string.Also, you should use
floatPlaceholderfrom mat-form-field insteadhttps://material.angular.io/components/form-field/overview#floating-placeholder