Remove single selection value
Closed this issue · 1 comments
yujun2017 commented
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.
tbleckert commented
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.