practical-react-components
practical-react-components copied to clipboard
FormikRadioButtonGroup does not get an error state automatically
Describe the bug
When using FormikRadioButtonGroup together with Formik (obviously), the component doesn't automatically get an error state even if validation fails. You have to manually add it.
<FormikRadioButtonGroupField
name="myFormField"
options={[
{ label: 'Label1', value: '1'},
{ label: 'Label2', value: '2'},
]}
error={formik.errors.myFormField}
/>