I'm using the CreatableSelect in react-select with the isMulti prop. all is working fine but when I want to clear all the selected options by making the value={null} it doesn't reset.
CreatableSelect
react-select
isMulti
value={null}
code use:
<CreatableSelect classes={classes} styles={selectStyles} options={dataSource} components={components} value={selected} onChange={onUpdateInput} onInputChange={onInputChange} onMenuOpen={onMenuOpen} placeholder={placeholder} isClearable={!!isClearable} allowSelect formatCreateLabel={formatCreateValueLabel} isDisabled={isDisabled} tooltip={tooltip} isValidNewOption={() => allowNewValues} isMulti={isMulti} />
1.4m articles
1.4m replys
5 comments
57.0k users