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

Function onClearClick

packages/shared/src/components/fields/SearchField.tsx:102–105  ·  view source on GitHub ↗
(event: MouseEvent)

Source from the content-addressed store, hash-verified

100 } = useInputField(value as string | number | readonly string[], valueChanged);
101
102 const onClearClick = (event: MouseEvent): void => {
103 event.stopPropagation();
104 setInput('');
105 };
106
107 const isPrimary = fieldType === 'primary';
108 const isSecondary = fieldType === 'secondary';

Callers

nothing calls this directly

Calls 1

setInputFunction · 0.85

Tested by

no test coverage detected