components icon indicating copy to clipboard operation
components copied to clipboard

v9 floatlabel absent with mat-form-field with appearance "fill" OR "outline"

Open pilucdes opened this issue 6 years ago • 2 comments

Using {provide: MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: {appearance: 'outline'}} or directly on the tag result in the same thing.

Did try to use "auto" or "always" with the provider : { provide: MAT_LABEL_GLOBAL_OPTIONS, useValue: {float: 'always'}}

Actual Behavior

The floatLabel is absent not even in the DOM

Annotation 2020-01-31 092551

Environment

   "@angular/cli": "^9.0.0-rc.6",
   "@angular/animations": "^9.0.0-rc.6",
    "@angular/cdk": "^9.0.0-rc.5",
    "@angular/common": "^9.0.0-rc.6",
    "@angular/compiler": "^9.0.0-rc.6",
    "@angular/core": "^9.0.0-rc.6",
    "@angular/flex-layout": "^8.0.0-beta.27",
    "@angular/forms": "^9.0.0-rc.6",
    "@angular/http": "^7.2.15",
    "@angular/localize": "~9.0.0-rc.6",
    "@angular/material": "^9.0.0-rc.5",
    "@angular/material-moment-adapter": "^9.0.0-rc.5",
    "@angular/platform-browser": "^9.0.0-rc.6",
    "@angular/platform-browser-dynamic": "^9.0.0-rc.6",
    "@angular/router": "^9.0.0-rc.6"
  • Browser(s): Chrome, Firefox , etc
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

pilucdes avatar Jan 31 '20 14:01 pilucdes

I must use the <mat-label>.. the default was on Legacy.

pilucdes avatar Jan 31 '20 14:01 pilucdes

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.