From 853a511f366b2bdd5cbc5a609596daf53acd91c8 Mon Sep 17 00:00:00 2001 From: Lhcfl Date: Mon, 26 Feb 2024 20:51:27 +0800 Subject: [PATCH] fix autosize --- packages/client/src/components/MkPostForm.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/client/src/components/MkPostForm.vue b/packages/client/src/components/MkPostForm.vue index cfc3cc9f2a..cecd4c483e 100644 --- a/packages/client/src/components/MkPostForm.vue +++ b/packages/client/src/components/MkPostForm.vue @@ -1233,6 +1233,7 @@ onMounted(() => { } nextTick(() => watchForDraft()); + nextTick(() => autosize.update(textareaEl.value)); }); });