question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Slider] Missing name property?

See original GitHub issue
  • 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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
oliviertassinaricommented, May 30, 2019

@valeedmalik There is no fix coming, it has to be handled userland.

2reactions
oliviertassinaricommented, Sep 10, 2020

@suliskh Not I’m aware of, you are free to go.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Slider] Missing name property? · Issue #13485 · mui/material-ui
This is not a v0.x issue. This is a Labs issue. I have searched the issues of this repository and believe that this...
Read more >
Slider control Value property missing
I am trying to reset the Slider control Value but cannot due to its property missing.
Read more >
Compilation error due to missing property on JSX element
If I follow your edit then the compiler complains that SliderProps is defined twice and that he cannot find the name Slider ....
Read more >
Wrong names under layer's Master Properties group (Slider ...
Unfortunately, this is a bug introduced in After Effects 17.1.4 happening to any property added via Essential Graphics panel.
Read more >
Why does my slider properties go missing when switching ...
My slider properties are missing when i switch scene from the main menu. Why does that happen ? Here's my code on the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found