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

Function onClearClick

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

setInputFunction · 0.85

Tested by

no test coverage detected