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

Function onInput

packages/shared/src/hooks/input/useMarkdownInput.ts:528–538  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

526 };
527
528 const onInput: FormEventHandler<HTMLTextAreaElement> = (e) => {
529 const target = e.currentTarget;
530
531 if (!target) {
532 return;
533 }
534
535 onUpdate(target.value);
536 checkMention();
537 checkEmoji();
538 };
539
540 const verifyFile = (file: File) => {
541 const isValidType = allowedContentImage.includes(file.type);

Callers

nothing calls this directly

Calls 3

checkMentionFunction · 0.85
checkEmojiFunction · 0.85
onUpdateFunction · 0.70

Tested by

no test coverage detected