diff --git a/src/lib/components/chat/ChatInput.svelte b/src/lib/components/chat/ChatInput.svelte index 0242070f095..10572f562db 100644 --- a/src/lib/components/chat/ChatInput.svelte +++ b/src/lib/components/chat/ChatInput.svelte @@ -109,9 +109,10 @@ value.trim() !== "" ) { event.preventDefault(); - adjustTextareaHeight(); - tick(); dispatch("submit"); + tick().then(() => { + adjustTextareaHeight(); + }); } }