Reactjs – DatePicker needing 2 clicks to update error, Formik and Yup
I have this Material UI DatePicker: <Grid item xs={12}> <LocalizationProvider dateAdapter={AdapterDayjs}> <DatePicker label="Date of birth" format="DD/MM/YYYY" value = {values.dob} sx={{ width: '50%' }} slotProps={{ textField: { id: 'dob', helperText: touched.dob ? errors.dob : "", error: touched.dob && Boolean(errors.dob), }, }}…