From 61c31bfd66f012a11e0b008f930f3ac054f1d022 Mon Sep 17 00:00:00 2001 From: fly_mc Date: Wed, 18 Sep 2024 23:54:51 +0800 Subject: [PATCH] fix autosize --- packages/frontend/src/components/MkPostForm.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue index 705a83678..6133b928a 100644 --- a/packages/frontend/src/components/MkPostForm.vue +++ b/packages/frontend/src/components/MkPostForm.vue @@ -590,8 +590,6 @@ function onCompositionUpdate(ev: CompositionEvent) { function onCompositionEnd(ev: CompositionEvent) { imeText.value = ''; - - nextTick(() => textareaEl.value && autosize.update(textareaEl.value)); } async function onPaste(ev: ClipboardEvent) { @@ -643,6 +641,7 @@ async function onPaste(ev: ClipboardEvent) { upload(file, `${fileName}.txt`); }); } + nextTick(() => textareaEl.value && autosize.update(textareaEl.value)); }