hperrin / svelte-material-ui

Svelte Material UI Components
https://sveltematerialui.com/
Apache License 2.0
3.27k stars 287 forks source link

docs: added note on how to avoid the incorrectly floating label in a select with empty value but non-empty text #634

Open JL102 opened 8 months ago

JL102 commented 8 months ago

I was originally planning on creating a fix for this, which was pretty clearly a bug to me, but then I saw that SMUI has no control over this particular issue. If the selected value is "", like in the case of a default, but the text is still non-empty, floatLabel() is called with value false, and I see that's controlled by @material/select, not SMUI.