TextField Label doesn't shrink when populated after data fetch from the server #45141
Labels
component: text field
This is the name of the generic UI component, not the React module!
status: waiting for author
Issue with insufficient information
Steps to reproduce
No response
Current behavior
TextField component's label doesn't shrink automatically when react hook form's reset function is called.
It does update if I change and save my code without refreshing which makes the component rerender with the data already fetched and then the labels do shrink.
I've tried everything from setting defaultValue="" on textFields to dynamically use the shrink property but nothing's working and this shouldn't be so hard
Expected behavior
No response
Context
No response
Your environment
npx @mui/envinfo
Search keywords: TextField label doesn't shrink
The text was updated successfully, but these errors were encountered: