Skip to content

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

Open
JL102 wants to merge 2 commits intohperrin:masterfrom
JL102:floating-label-limitation
Open

docs: added note on how to avoid the incorrectly floating label in a select with empty value but non-empty text#634
JL102 wants to merge 2 commits intohperrin:masterfrom
JL102:floating-label-limitation

Conversation

@JL102
Copy link
Copy Markdown
Contributor

@JL102 JL102 commented Oct 30, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant