Skip to content

[slider] Missing name property? #13485

Description

@chrislambe
  • This is not a v0.x issue.
  • This is a Labs issue.
  • I have searched the issues of this repository and believe that this is not a duplicate.

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

  1. Create a ToggleButtonGroup or Slider with state managed via Formik
  2. Attempt to select one of the options

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGreat for first contributions. Enable to learn the contribution process.scope: sliderChanges related to the slider.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions