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

Function handleChange

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

Source from the content-addressed store, hash-verified

60 }, [selectedValue, options, selectedOption]);
61
62 const handleChange = (val: string) => {
63 setInput(val);
64 onChange(val);
65 };
66
67 const handleSelect = (opt: AutocompleteOption) => {
68 setInput(opt.label);

Callers 1

AutocompleteFunction · 0.70

Calls 2

setInputFunction · 0.85
onChangeFunction · 0.70

Tested by

no test coverage detected