Open block2k opened 2 years ago
Refer : https://codesandbox.io/s/formik-bug-select-vs-textfield-forked-9mfdsy?file=/src/App.js Works alright now.
Any particular reason why you have not included formik.touched for Radio button ? As per other examples from documentation also, I understand that the validation schema runs for all fields and its up to the user to display the error message after making sure formik.touched exists for that particular field element.
Bug report
when entering the textfield or touching the textfield, the error message of the radio group is displayed even though the radio group area has not been touched
Current Behavior
Touch the textfield then untouch,
formik.errors
display both error message of textfield and RadioGroup even though I haven't touched the radiogroupExpected behavior
Touch the textfield then untouch, display only error message of textfield
Reproducible example
This is example of this bug https://codesandbox.io/s/formik-bug-radiogroup-vs-textfield-0tvzcx
Your environment