https://codesandbox.io/s/j74yvm2zkv
While label provided to TextField Component works fine (floats if there is a value and comes down to input field if input is empty), but with InputProps provided like in the Autocomplete demo, label doesn't floats if there is value. It floats only while input is focused.
Label should float if there is value in input field. Attached codesandbox link.
Label doesn't float and no prop floatingLabelFixed found
Link:
If the label doesn't float, then we can not see the label if the chips are there in the input field.
| Tech | Version |
|--------------|---------|
| Material-UI | v1.4.3 |
| React | 16.4.2 |
| browser | chrome |
| etc. | |
on your codepen, i saw that we can input a new value by pressing enter after writing something. this behavior is not available on the demo. Does the component support this already or is it a custom change you made?
That's a custom change, I am using creatable from react-select.
@abhijeetahuja this is the solution that I found for the problem.
InputLabelProps={{
shrink: true,
}}
And it seems is the same choose by @oliviertassinari
Most helpful comment
InputLabelProps={{
shrink: true,
}}
And it seems is the same choose by @oliviertassinari