Skip to content

fix(components): show the placeholder that apps pass to a text field - #18

Merged
TheMeinerLP merged 1 commit into
mainfrom
fix/text-field-placeholder
Nov 25, 2026
Merged

TheMeinerLP merged 1 commit into
mainfrom
fix/text-field-placeholder

Conversation

@TheMeinerLP

Copy link
Copy Markdown
Contributor

An app that set a placeholder on a text field never saw it: the field
always showed its own blank placeholder, which exists only to drive the
floating label. Now the placeholder the app passes is shown in the box,
and the label rests above the box while it is shown so the two never
overlap. Fields without a placeholder behave as before.

A placeholder passed to TextField was overwritten by the blank
placeholder that drives the floating label, so it never showed.
Render the app's placeholder instead and float the label above the
box in that case so the two do not overlap.
@TheMeinerLP
TheMeinerLP merged commit 4096dd2 into main Nov 25, 2026
4 checks passed
@TheMeinerLP
TheMeinerLP deleted the fix/text-field-placeholder branch November 25, 2026 09:18
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