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

Function setInput

packages/shared/src/hooks/useInputField.ts:25–28  ·  view source on GitHub ↗
(newValue: string)

Source from the content-addressed store, hash-verified

23 const [hasInput, setHasInput] = useState<boolean>(false);
24
25 const setInput = (newValue: string): void => {
26 inputRef.current.value = newValue;
27 inputRef.current.dispatchEvent(new Event('input', { bubbles: true }));
28 };
29
30 useEffect(() => {
31 if (value !== undefined) {

Callers 8

RichTextInputFunction · 0.85
handleChangeFunction · 0.85
handleSelectFunction · 0.85
handleBlurFunction · 0.85
onClearClickFunction · 0.85
useInputFieldFunction · 0.85
useMarkdownInputFunction · 0.85
onUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected