Skip to content

floatLabel property of mat-form-field doesn't work #9779

@inyryaev

Description

@inyryaev

I use floatLabel property of mat-form-field, but it doesn't work.

<mat-form-field [floatLabel]='always'>
        <mat-label>CyberSource Reference</mat-label>
        <input matInput placeholder="(Enter reference)" />
 </mat-form-field>

It has 'CyberSource Reference' as placeholder. Then it move to label on focus. Behavior doesn't change with any value of floatLabel property. Any Ideas? MatFormFieldModule is loaded to my app. Thanks.

"@angular/material": "^5.0.4"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions