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

Function handleSelect

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

Source from the content-addressed store, hash-verified

61 };
62
63 const handleSelect = (opt: AutocompleteOption) => {
64 setInput(opt.label);
65 onSelect(opt.value);
66 setIsFocused(false);
67 inputRef.current?.focus();
68 };
69 const handleBlur = () => {
70 setIsFocused(false);
71 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