MCPcopy Create free account
hub / github.com/dailydotdev/apps / handleChange

Function handleChange

packages/shared/src/components/fields/Autocomplete.tsx:58–61  ·  view source on GitHub ↗
(val: string)

Source from the content-addressed store, hash-verified

56 }, [selectedValue, options, selectedOption]);
57
58 const handleChange = (val: string) => {
59 setInput(val);
60 onChange(val);
61 };
62
63 const handleSelect = (opt: AutocompleteOption) => {
64 setInput(opt.label);

Callers 1

AutocompleteFunction · 0.70

Calls 2

setInputFunction · 0.85
onChangeFunction · 0.70

Tested by

no test coverage detected