From bcc2bdd8a2463cc8ff809101590285396cbccbd4 Mon Sep 17 00:00:00 2001 From: samunohito <46447427+samunohito@users.noreply.github.com> Date: Mon, 11 Dec 2023 07:41:08 +0900 Subject: [PATCH] fix setTimeout -> nextTick --- packages/frontend/src/components/MkPostForm.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue index f0a9abba8b..4a1930ac0b 100644 --- a/packages/frontend/src/components/MkPostForm.vue +++ b/packages/frontend/src/components/MkPostForm.vue @@ -857,9 +857,7 @@ async function insertEmoji(ev: MouseEvent) { }, () => { textAreaReadOnly.value = false; - setTimeout(() => { - focus(); - }, 10); + nextTick(() => focus()); }, ); }