Merge pull request #941 from jannikstdl/autofocus-chat

fix: added focus selector
This commit is contained in:
Timothy Jaeryang Baek 2024-02-27 22:59:10 -05:00 committed by GitHub
commit f347d664ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 16 additions and 8 deletions

View file

@ -293,6 +293,9 @@
};
onMount(() => {
const chatInput = document.getElementById('chat-textarea');
window.setTimeout(() => chatInput?.focus(), 0);
const dropZone = document.querySelector('body');
const onDragOver = (e) => {