From ed0f652e0a79a84024d081cf58ac8d22394d1667 Mon Sep 17 00:00:00 2001 From: ilhooq Date: Mon, 16 Sep 2024 23:59:49 +0200 Subject: [PATCH] =?UTF-8?q?Vidage=20du=20textarea=20apr=C3=A8s=20envoi=20d?= =?UTF-8?q?u=20message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite/src/ChatApp.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/vite/src/ChatApp.svelte b/vite/src/ChatApp.svelte index 50104b3..3f888f9 100644 --- a/vite/src/ChatApp.svelte +++ b/vite/src/ChatApp.svelte @@ -167,6 +167,7 @@ if (event.key === 'Enter') { event.preventDefault(); // Disallow adding a new line sendMessage(chatInput.value); + chatInput.value = ''; } }