Closed yujun2017 closed 2 years ago
You can control the value yourself with a state like this:
const [value, setValue] = useState(null);
return <SelectSearch value={value} />;
So at any time you can just call setValue(null)
to reset or change the value. Works for both single and multiple selects.
See this story for more info.
We would like to remove selected single value, is it possible? For the multiple selection, we do notice we can clean selected value. but it is not for single selection.