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

Function onPress

packages/shared/src/hooks/useFormTouched.ts:42–46  ·  view source on GitHub ↗
(event: Event)

Source from the content-addressed store, hash-verified

40 }
41 };
42 const onPress = (event: Event) => {
43 if (isInForm(event.target) && event.target.closest(pickerSelector)) {
44 setIsTouched(true);
45 }
46 };
47
48 document.addEventListener('input', onEdit, true);
49 document.addEventListener('change', onEdit, true);

Callers

nothing calls this directly

Calls 1

isInFormFunction · 0.85

Tested by

no test coverage detected