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

Function onEdit

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

Source from the content-addressed store, hash-verified

35 ((target as HTMLInputElement).form?.id === formId ||
36 !!target.closest(`[id="${formId}"]`));
37 const onEdit = (event: Event) => {
38 if (isInForm(event.target)) {
39 setIsTouched(true);
40 }
41 };
42 const onPress = (event: Event) => {
43 if (isInForm(event.target) && event.target.closest(pickerSelector)) {
44 setIsTouched(true);

Callers 8

SourceStackItemFunction · 0.50
SubCommentFunction · 0.50
CommentActionButtonsFunction · 0.50
CommentActionButtonsV1Function · 0.50
MainCommentFunction · 0.50
useEditCommentPropsFunction · 0.50
MyPluginsListFunction · 0.50
OAuthClientListItemFunction · 0.50

Calls 1

isInFormFunction · 0.85

Tested by

no test coverage detected