I'm using material-ui textfied of type='date' when it's not animated its mixed with the date label. i want to fix that, i want it not to animate and fix on the top like in the images below


component:
<TextField
className={classes.inputFields}
error={errors.lastVisit && touched.lastVisit}
name='lastVisit' variant='standard'
type='date'
onChange={handleChange}
id='lastVisit'
label='Last Visit'
helperText={errors.lastVisit && touched.lastVisit? errors.lastVisit
: null}
/>
and the CSS applied using makeStyles function of material-ui and the css is:
inputFields: {
width: '100%',
'& .MuiInputLabel-animated': {
color: 'black',
[theme.breakpoints.down('md')]: {
fontSize: theme.spacing(2),
}
},
}
how to fix that issue?