jaredpalmer / formik

Build forms in React, without the tears 😭
https://formik.org
Apache License 2.0
33.88k stars 2.79k forks source link

Validation doesn't trigger on radio button fields when validateOnblur is set to be true #3384

Open prajakta881 opened 2 years ago

prajakta881 commented 2 years ago

Bug report

Current Behavior

Validation Error doesn't trigger on radio button fields even when validateOnblur property is set to be true in Formik. It is working fine when validateonChange is set. Please check. We are using yup for validating our form.

Versions used: Formik - ^2..2.6 yup - 0.32.9

rakheesingh commented 2 years ago

it seems that the touched flag is not set even when we start typing into a field. Please Check out this github issue- https://github.com/jaredpalmer/formik/issues/1442