Explorar o código

added focus selector

Jannik Streidl hai 1 ano
pai
achega
7c7e16c382
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/lib/components/chat/MessageInput.svelte

+ 3 - 0
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) => {