MCPcopy Create free account
hub / github.com/HelloCSV/HelloCSV / clear

Function clear

src/components/Select.tsx:73–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71 };
72
73 const clear = () => {
74 setQuery('');
75 if (multiple) {
76 onChange([]);
77 } else {
78 onChange(null);
79 }
80 };
81
82 const selectedOptions = options.filter((option) => isSelected(option.value));
83 const baseDisplayValue = selectedOptions.map((o) => o.label).join(', ');

Callers 2

SelectFunction · 0.85
useLongPressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected