Is there a way to disable the dropdown list? I didn't find any props that can help me.
In particular, I would like to disable the dropdown list when user has selected more than 5 elements.
I created this codesandbox. It doesn't really work because it's not linked to a state:
const limit = 3;
const defaults = [colourOptions[2], colourOptions[3]];
export default () => (
<Select
defaultValue={defaults}
isMulti
name="colors"
options={colourOptions}
className="basic-multi-select"
classNamePrefix="select"
isSearchable={defaults.length < limit}
// disableDropdown={defaults.length > limit} // <-- something like this
/>
)