Warning: The `value` prop supplied to <select> must be a scalar value if `multiple` is false. Check the render method of `ConnectedField`.

See original GitHub issue

Why would this field return the following warning:

Data: “categories”:[{“id”:“41”,“description”:“My First Select Item”},…]

Field:

<Field name="categories" component="select" className="form-control"> {categories.map( category => <option key={category.id} value={category.id}>{category.description}</option> )} </Field>

Warning generated in browser:

Warning: The value prop supplied to <select> must be a scalar value if multiple is false. Check the render method of ConnectedField.

Probably a good idea to show some of my config for versions:

“dependencies”: { “axios”: “^0.14.0”, “core-js”: “^2.0.0”, “normalize.css”: “^4.0.0”, “react”: “^15.0.0”, “react-bootstrap”: “^0.30.3”, “react-dom”: “^15.0.0”, “react-redux”: “^4.4.5”, “react-router”: “^2.8.1”, “react-widgets”: “^3.4.4”, “redux”: “^3.6.0”, “redux-form”: “^6.1.0”, “redux-promise”: “^0.5.3”, “redux-thunk”: “^2.1.0” }

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

2reactions
dijonkitchencommented, Mar 16, 2017

Since it’s not a multiple selection, it shouldn’t be an array. Check your categories data or allow multiple selections.

0reactions
lock[bot]commented, Dec 7, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React: The `value` prop supplied to <select> must be a scalar ...
Warning : The value prop supplied to must be a scalar value if multiple is false. Check the render method of Control ....
Read more >
React: The `value` prop supplied to <select> must be a scalar ...
Coding example for the question React: The `value` prop supplied to must be a scalar value if `multiple` is false-Reactjs.
Read more >
Warning: The `value` prop supplied to <select> must be a ...
Warning : The `value` prop supplied to must be a scalar value if `multiple` is false. Check the render method of `ConnectedField`.
Read more >
React: The `value` prop supplied to must be a ... - iTecNote
React uses value instead of selected for consistency across the form components. You can use defaultValue to set an initial value. If you're...
Read more >
Analysis Methods for Multi-Spacecraft Data
decreasing by half when T is doubled. On the average, the value of the terms |˜u[n]|2 in the sum in 1.6 therefore must...
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