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

Function onInput

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

Source from the content-addressed store, hash-verified

524 };
525
526 const onInput: FormEventHandler<HTMLTextAreaElement> = (e) => {
527 const target = e.currentTarget;
528
529 if (!target) {
530 return;
531 }
532
533 onUpdate(target.value);
534 checkMention();
535 checkEmoji();
536 };
537
538 const verifyFile = (file: File) => {
539 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