[Input] placeholder should be displayed if InputLabel is shrinked #8436
Labels
bug 🐛
Something doesn't work
component: text field
This is the name of the generic UI component, not the React module!
When composing a textfield with
FormControl
,InputLabel
andInput
. The placeholder is hidden even whenshrink
is set totrue
onInputLabel
. #7821Expected Behavior
Composing an input like this:
Should display a placeholder at all times, like a regular input (except with content in it).
Current Behavior
The placeholder is only shown on focus.
Context
I am personally not a fan of material-ui's label animation, it confuses our users, and it's not clear to them that this is an input where they can type something.
Your Environment
An attempt at a solution could use the suggestion by @robert-figshare. Adding this sort of css to the
Input
component (not sure how to apply the JSSshrink
class):The text was updated successfully, but these errors were encountered: