So, the problem is as in the title of this post. Here's my component. It's just regular MUI text field:
<TextField
onChange={(e) => {
handleSetUserData(e);
}}
sx={{ marginTop: "10px" }}
fullWidth
required
variant="filled"
label="Username"
name="userName"
inputProps={{ maxLength: 12 }}
/>
If I type manually color will stay the same. Any suggestions on how this could be fixed? All the text fields are also inside single FormControl btw.