Skip to content
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

mat-form-field floatLabel="never" appearance="outline" will shows the label #16800

Closed
edjm1971 opened this issue Aug 16, 2019 · 2 comments
Closed

Comments

@edjm1971
Copy link

Reproduction

Use StackBlitz to reproduce your issue: https://stackblitz.com/fork/components-issue
https://stackblitz.com/edit/components-issue-yrfuba

Steps to reproduce:

  1. Create item
  2. Create item

Expected Behavior

What behavior were you expecting to see?
#1 The label will not show when data has been entered.
#2 The label will not show when data has been entered.

Actual Behavior

What behavior did you actually see?
#1 the label did not show when data had been entered
#2 the label shows after data had been entered

Environment

  • Angular:
  • CDK/Material:
  • Browser(s): FF 68.0.2 and Chrome 76.0.3809.100
  • Operating System (e.g. Windows, macOS, Ubuntu): win32 x64

Angular CLI: 7.3.9
Node: 10.15.3
OS: win32 x64
Angular: 7.2.15
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package Version

@angular-devkit/architect 0.13.9
@angular-devkit/build-angular 0.13.9
@angular-devkit/build-optimizer 0.13.9
@angular-devkit/build-webpack 0.13.9
@angular-devkit/core 7.3.9
@angular-devkit/schematics 7.3.9
@angular/cdk 7.3.7
@angular/cli 7.3.9
@angular/material 7.3.7
@ngtools/webpack 7.3.9
@schematics/angular 7.3.9
@schematics/update 0.13.9
rxjs 6.3.3
typescript 3.2.4
webpack 4.29.0

@andrewseguin
Copy link
Contributor

The outline appearance does not support the never input, but this can be achieved by using placeholder on the input rather than the <mat-label>

https://stackblitz.com/edit/components-issue-jj3ap4?file=app/app.component.html

See docs for notes on this https://material.angular.io/components/form-field/api

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants