v6: Warning: The `value` prop supplied to <select> must be an array if `multiple` is true.

See original GitHub issue

Warning: The value prop supplied to <select> must be an array if multiple is true. Check the render method of ConnectedField.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7

github_iconTop GitHub Comments

4reactions
trongphancommented, Mar 30, 2017

Use this: type=“select-multiple” @deathmood

1reaction
chillichickencommented, Feb 7, 2017

I still get this error.

“redux-form”: “^6.5.0”,

In Render:

<Field name="favoriteColor" component="select" multiple={true} value={[]}>
                        <option></option>
                        <option value="#ff0000">Red</option>
                        <option value="#00ff00">Green</option>
                        <option value="#0000ff">Blue</option>
                    </Field>

In console:

warning.js:36 Warning: The value prop supplied to <select> must be an array if multiple is true. Check the render method of ConnectedField.

Even though I supplied that value.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React: The `value` prop supplied to <select> must be a scalar ...
I am getting this warning: Warning: The value prop supplied to must be a scalar value if multiple is false. Check the render...
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 >
FieldArray - Redux Form
Allows you to provide a field-level warning rule. The function will be given the current value of the array field, all the other...
Read more >
React Bootstrap Typeahead Example
The typeahead allows single-selection by default. Setting the multiple prop turns the component into a tokenizer, allowing multiple selections. Example. Show ...
Read more >
Model - Sequelize
If an array is provided, the same is true for each column. If and object is provided, each column is incremented by 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