MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / handleReset

Function handleReset

apps/web/ui/Typesense/ui/SearchBox/index.tsx:169–178  ·  view source on GitHub ↗
(event: React.FormEvent<HTMLFormElement>)

Source from the content-addressed store, hash-verified

167 }
168
169 function handleReset(event: React.FormEvent<HTMLFormElement>) {
170 event.preventDefault();
171 event.stopPropagation();
172
173 onReset(event);
174
175 if (inputRef.current) {
176 inputRef.current.focus();
177 }
178 }
179
180 return (
181 <div

Callers

nothing calls this directly

Calls 1

onResetFunction · 0.85

Tested by

no test coverage detected