How to use custom Input with Formik in React?

前端 未结 5 1279
無奈伤痛
無奈伤痛 2020-12-25 12:18

I\'m trying to use DatePicker within Formik. But when I click DatePicker\'s date its form value is not changed. Instead, I got this error:

Uncaught T

5条回答
  •  眼角桃花
    2020-12-25 12:46

    https://github.com/jaredpalmer/formik/issues/692

    you need to set value manually if you are using setFieldValue method

提交回复
热议问题