Answer the question
In order to leave comments, you need to log in
What is wrong with React - select - value?
I'm making a drop-down list, it seems to be nothing complicated, but I ran into an error that I don't understand.
Here is my Select:
<select
className='form-control'
value={sort || ''}
onChange={e => handlers.sortChange(e.target.value)}
multiple={false}
>
<option value=''>Select</option>
<option value='lowestprice'>Lowest to highest</option>
<option value='highestprice'>Highest to lowest</option>
</select>
index.js:1 Warning: The `value` prop supplied to must be a scalar value if `multiple` is false.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question