Expected Behavior
As with other grouped form controls (e.g. RadioGroup as in the example), a library like Formik should be able to manage the form control state.
Current Behavior
Formik throws an error stating that it could not update the form control value because there was no name provided:
Warning: Formik called `handleChange`, but you forgot to pass an `id` or `name` attribute to your input:
<span class="MuiToggleButton-label-1289">2</span>
Formik cannot determine which value to update. For more info see https://github.com/jaredpalmer/formik#handlechange-e-reactchangeeventany--void
Steps to Reproduce
Link: https://codesandbox.io/s/yv5706y30x
- Create a
ToggleButtonGroup or Slider with state managed via Formik
- Attempt to select one of the options
Expected Behavior
As with other grouped form controls (e.g.
RadioGroupas in the example), a library like Formik should be able to manage the form control state.Current Behavior
Formik throws an error stating that it could not update the form control value because there was no
nameprovided:Steps to Reproduce
Link: https://codesandbox.io/s/yv5706y30x
ToggleButtonGrouporSliderwith state managed viaFormik