New Checkbox component and Formik #3197
Unanswered
therealgilles
asked this question in
Help
Replies: 1 comment
-
Looks like this does the trick: const { setFieldValue } = useFormikContext()
return (
<Field>
<Checkbox
...
onChange={isChecked => setFieldValue(name, isChecked)}
> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Anyone has tried to integrate the new Checkbox component with Formik? My understanding is that Formik expects the onChange event handler to be on the
input
HTML tag, which is not the case with the new Checkbox component.Beta Was this translation helpful? Give feedback.
All reactions