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

Function onSubmit

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

Source from the content-addressed store, hash-verified

67 }
68
69 function onSubmit(event: React.FormEvent<HTMLFormElement>) {
70 if (!searchAsYouType) {
71 refine(inputValue);
72 }
73
74 if (props.onSubmit) {
75 props.onSubmit(event);
76 }
77 }
78
79 // Track when the InstantSearch query changes to synchronize it with
80 // the React state.

Callers 1

handleSubmitFunction · 0.50

Calls 1

onSubmitMethod · 0.80

Tested by

no test coverage detected