feat: chat input focus on new chat
This commit is contained in:
@@ -134,6 +134,9 @@
|
||||
settings.set({
|
||||
..._settings
|
||||
});
|
||||
|
||||
const chatInput = document.getElementById('chat-textarea');
|
||||
setTimeout(() => chatInput?.focus(), 0);
|
||||
};
|
||||
|
||||
const scrollToBottom = () => {
|
||||
|
||||
@@ -99,6 +99,9 @@
|
||||
if (await loadChat()) {
|
||||
await tick();
|
||||
loaded = true;
|
||||
|
||||
const chatInput = document.getElementById('chat-textarea');
|
||||
chatInput?.focus();
|
||||
} else {
|
||||
await goto('/');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user