Explorar el Código

added focus selector

Jannik Streidl hace 1 año
padre
commit
7c7e16c382
Se han modificado 1 ficheros con 3 adiciones y 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) => {