practical-react-components icon indicating copy to clipboard operation
practical-react-components copied to clipboard

FormikRadioButtonGroup does not get an error state automatically

Open lekoaf opened this issue 3 years ago • 0 comments

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}
/>

lekoaf avatar Nov 23 '22 21:11 lekoaf