When using multi select , the drop down shows No-Options after selecting a value
See original GitHub issueIn Multi-Select version, when a value is selected, nothing shows in the drop down. I see No Options
. When no value is selected, I see some options.
My code is straight from the docs:
import Select from 'react-select';
import { colourOptions } from './data';
class Search extends React.Component {
render(){
return (
<Select
defaultValue={[colourOptions[2], colourOptions[3]]}
isMulti
name="colors"
options={colourOptions}
className="basic-multi-select"
classNamePrefix="select"
/>
);
}
}
export default Search
Issue Analytics
- State:
- Created 5 years ago
- Reactions:12
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Javascript Bootstrap Multiselect - Show search dropdown if no ...
A possible solution is to add an element to the multiselect and then hide the list item
Read more >Should selected options be removed from single- and multi ...
My question now is: Should the option(s) the user has already selected (a) still be shown and highlighted in the list or should...
Read more >Virtual Select
A javascript plugin for dropdown with virtual scroll. ... Select multiple values ... Tooltip would be used to show selected values and options...
Read more >Bootstrap Multiselect Examples - CodeHim
When using selectedClass , the selected classes are also applied on the option groups. ... A callback called after the dropdown has been...
Read more >Select | Quasar Framework
Hides dropdown icon. fill-input. : Boolean. Description. Fills the input with current value; Useful along with 'hide-selected'; Does NOT works along with ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Check if your colourOptions similar as this :
An option must have value key.
@xnart Is correct either ensure that all options have a value key or use the
getOptionValue
prop