You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating formik from v2.1.0 to v2.1.2 the checkbox type sets value to an empty array instead of a boolean. As a result you cannot uncheck the checkbox.
Current Behavior
Unable to uncheck the checkbox after selection and value is an array
Expected behavior
Can check and uncheck the checkbox and the form value is a boolean.
The text was updated successfully, but these errors were encountered:
emjaksa
changed the title
Formik unable to uncheck and check field of type="checkbox" and form value set to array
Unable to uncheck the checkbox after selection and value is set to an array
Jan 24, 2020
馃悰 Bug report
After updating formik from v2.1.0 to v2.1.2 the checkbox type sets value to an empty array instead of a boolean. As a result you cannot uncheck the checkbox.
Current Behavior
Unable to uncheck the checkbox after selection and value is an array
Expected behavior
Can check and uncheck the checkbox and the form value is a boolean.
Reproducible example
v2.1.0
https://codesandbox.io/s/formik-checkbox-v210-bl4we
v2.1.2
https://codesandbox.io/s/formik-checkbox-v212-7bwh7
Your environment
The text was updated successfully, but these errors were encountered: