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

Function onClearClick

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

Source from the content-addressed store, hash-verified

93 } = useInputField(value as string | number | readonly string[], valueChanged);
94
95 const onClearClick = (event: MouseEvent): void => {
96 event.stopPropagation();
97 setInput('');
98 };
99
100 const isPrimary = fieldType === 'primary';
101 const isSecondary = fieldType === 'secondary';

Callers

nothing calls this directly

Calls 1

setInputFunction · 0.85

Tested by

no test coverage detected