| Tech | Version |
| -------------------- | ------- |
| @material-ui/pickers | 3.2.8 |
| formik | 2.1.2 |
| yup| | 0.28.0
Change input or focus on the picker component
Set touched object contain the name of the picker component
Not working as expected
https://codesandbox.io/s/formik-material-ui-date-picker-with-yup-validate-3odn7?from-embed
@thanhmd
While figuring out an issue with the latest 4.0-alpha builds I stumbled upon your issue. Your sandbox is missing the onBlur callback from Formik.
<KeyboardDatePicker
...
onBlur={props.handleBlur}
/>
I had the same issue as OP. I will try that tomorrow.
Thank you for the response!
EDIT:
Sorry for the late response. Your solution fixes the issue.
Most helpful comment
@thanhmd
While figuring out an issue with the latest 4.0-alpha builds I stumbled upon your issue. Your sandbox is missing the
onBlurcallback from Formik.