From 7c7e16c382941cb3571a5b682cef0d0c217c3c68 Mon Sep 17 00:00:00 2001 From: Jannik Streidl Date: Tue, 27 Feb 2024 13:30:03 +0100 Subject: [PATCH] added focus selector --- src/lib/components/chat/MessageInput.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index 67bb3d88..e6ca374d 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -293,6 +293,9 @@ }; onMount(() => { + const chatInput = document.getElementById('chat-textarea'); + chatInput?.focus(); + const dropZone = document.querySelector('body'); const onDragOver = (e) => {