Placeholder doesn't appear in mat-select, select box
See original GitHub issueBug, feature request, or proposal:
Bug
What is the expected behavior?
Placeholder to appear
What is the current behavior?
Placeholder doesn’t appear
What are the steps to reproduce?
I’ve just added this code and the placeholder doesn’t ppear after the mat
prefix update
<mat-select placeholder="Favorite food">
<mat-option [value]="0">
TOMATO
</mat-option>
</mat-select>
What is the use-case or motivation for changing an existing behavior?
rolling back to the old md
prefox
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
LATEST
Is there anything else we should know?
No
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top Results From Across the Web
How can I always display the placeholder in mat-select ...
The current behavior is: A soon as a language is selected, the placeholder is made small, moved to the top and the selected...
Read more >Input and select placeholders are not correctly placed #7841
In short, when you perform a transform on the mat-select, the placeholder doesn't stay attached to the box...
Read more >Select | Angular Material
Function to compare the option values with the selected values. The first argument is a ... Placeholder to be shown if no value...
Read more >:placeholder-shown - CSS: Cascading Style Sheets | MDN
The :placeholder-shown CSS pseudo-class represents any <input> or <textarea> element that is currently displaying placeholder text.
Read more >ngx-mat-select-search - npm
The currently selected option might be hidden under the search input field when opening the options panel and the panel is at the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@JosephSKh A lot of people are having issues with caching - myself included. I’ve been browsing it in incognito mode
mat-select must appear inside a mat-form-field since beta12