TextField label is messed up when component is controlled and value is set by other event trigger #38805
Closed
2 tasks done
Labels
component: text field
This is the name of the generic UI component, not the React module!
package: material-ui
Specific to @mui/material
status: expected behavior
Does not imply the behavior is intended. Just that we know about it and can't work around it
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example:
https://9hyhks.csb.app/
https://codesandbox.io/s/cocky-yalow-9hyhks?file=/Demo.tsx
Steps:
When you click the "Click Me" button - you'll see the value is set while the label is still inside the input box and not going up as usual:
Current behavior 😯
When you click the "Click Me" button - you'll see the value is set while the label is still inside the input box and not going up as usual
Expected behavior 🤔
When you click the "Click Me" button - the label should go up to the input box's border
Context 🔦
No response
Your environment 🌎
The text was updated successfully, but these errors were encountered: