From d3a079a644db3dfe2f4e9567973550d74b3ba905 Mon Sep 17 00:00:00 2001 From: Dewdew <57179957+yeonjulee1005@users.noreply.github.com> Date: Tue, 19 Nov 2024 18:02:19 +0900 Subject: [PATCH] fix(Textarea): `autoresize` does not work when initializing `modelValue` (#2681) --- src/runtime/components/Textarea.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/components/Textarea.vue b/src/runtime/components/Textarea.vue index b06e9276..8d837335 100644 --- a/src/runtime/components/Textarea.vue +++ b/src/runtime/components/Textarea.vue @@ -151,7 +151,7 @@ function autoResize() { } } -watch(() => modelValue, () => { +watch(modelValue, () => { nextTick(autoResize) })