Ugh have to manual trigger onInput

Is there a way to just auto trigger this?
This commit is contained in:
Lim Chee Aun 2022-12-16 00:54:44 +08:00
parent 03d2e2aa72
commit db1e481bd3

View file

@ -97,6 +97,7 @@ function Compose({
.filter((m) => m !== currentAccountInfo.acct) // Excluding self
.map((m) => `@${m}`)
.join(' ')} `;
textareaRef.current.dispatchEvent(new Event('input'));
textareaRef.current.focus();
}
setVisibility(visibility);