mat-form-design floatLabel does not work - trying to prevent floatLabel
Bug, feature request, or proposal:
In html, mat-form-field [floatLabel]="options.floatLabel" does not work mat-form-field floatLabel="false" works to a degree. The label still floats.
In ts file, options is declared as follow export class CrcSupportDocumentsComponent implements OnInit { options = { floatLabel: false };
What is the expected behavior?
Expect floatLabel to be disabled.
What is the current behavior?
My input label is still floating when I used [floatLabel]
What are the steps to reproduce?
Providing a StackBlitz reproduction is the best way to share your issue.
StackBlitz starter: https://goo.gl/wwnhMV
What is the use-case or motivation for changing an existing behavior?
In my use case, not floating the label is a better user experience. It is not changing the existing behaviour but is this a defect in my angular-material?
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular CLI: 1.6.4 Node: 8.9.4 OS: win32 x64 Angular: 5.2.9 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-dynamic, router
@angular/cdk: 5.2.4 @angular/cli: 1.6.4 @angular/material: 5.2.4 @angular-devkit/build-optimizer: 0.0.42 @angular-devkit/core: 0.0.29 @angular-devkit/schematics: 0.0.52 @ngtools/json-schema: 1.1.0 @ngtools/webpack: 1.9.4 @schematics/angular: 0.1.17 typescript: 2.5.3 webpack: 3.10.0 @angular/material:5.2.4 // is this too old?
Is there anything else we should know?
Funny enough, the example works https://stackblitz.com/angular/amdxobqpjev?file=app%2Fform-field-label-example.html Maybe it is my version?
Please keep GitHub issues for bug reports / feature requests. Better avenues for troubleshooting / questions are stack overflow, gitter, mailing list, etc.
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.