From 03807b7815f2450e66d37df1da9b146ad9444980 Mon Sep 17 00:00:00 2001 From: Lhcfl Date: Mon, 1 Jan 2024 20:31:55 +0800 Subject: [PATCH] fix: Missing first autosize when opening long draft --- 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 a881b6703..c7b996912 100644 --- a/packages/client/src/components/MkPostForm.vue +++ b/packages/client/src/components/MkPostForm.vue @@ -1223,6 +1223,7 @@ onMounted(() => { quoteId.value = init.renote ? init.renote.id : null; } + nextTick(() => autosize.update(textareaEl.value)); nextTick(() => watchForDraft()); }); });