MCPcopy Create free account
hub / github.com/coder/coder / handleClear

Function handleClear

site/src/components/SearchField/SearchField.tsx:49–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 }, []);
48
49 const handleClear = () => {
50 if (onClear) {
51 onClear();
52 } else {
53 onChange("");
54 }
55 };
56
57 const setRefs = (el: HTMLInputElement | null) => {
58 internalRef.current = el;

Callers 1

AutocompleteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected