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

Function handleSelect

packages/shared/src/components/fields/Autocomplete.tsx:67–72  ·  view source on GitHub ↗
(opt: AutocompleteOption)

Source from the content-addressed store, hash-verified

65 };
66
67 const handleSelect = (opt: AutocompleteOption) => {
68 setInput(opt.label);
69 onSelect(opt.value);
70 setIsFocused(false);
71 inputRef.current?.focus();
72 };
73 const handleBlur = () => {
74 setIsFocused(false);
75 if (resetOnBlur) {

Callers 3

AutocompleteFunction · 0.70
EmojiPickerFunction · 0.70
SpotlightFunction · 0.50

Calls 2

setInputFunction · 0.85
onSelectFunction · 0.50

Tested by

no test coverage detected