Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (19.9k points)

In the following stackblitz example you can see the "Toppings" placeholder on it; when a user selects any items from the dropdown the "Toppings" text gets smaller and moves above the select.

Is there any way to remove the toppings text from above or display an empty string instead of it when the user selects anything?

1 Answer

0 votes
by (25.1k points)

Use <mat-form-field [floatLabel]="'never'">

Browse Categories

...