diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index dd8006b895..49b0552826 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -172,7 +172,6 @@ try { const input = JSON.parse(storageChatInput); - console.log(input); if (!$temporaryChatEnabled) { messageInput?.setText(input.prompt); files = input.files; @@ -477,7 +476,6 @@ try { const input = JSON.parse(storageChatInput); - console.log(input); if (!$temporaryChatEnabled) { messageInput?.setText(input.prompt); diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index 57a2e195b0..50513423f3 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -120,8 +120,11 @@ if ($settings?.richTextInput ?? true) { chatInputElement.setText(text); } else { - // chatInput.value = text; + chatInput.value = text; prompt = text; + + chatInput.focus(); + chatInput.dispatchEvent(new Event('input')); } } }; diff --git a/src/lib/components/common/RichTextInput.svelte b/src/lib/components/common/RichTextInput.svelte index 3503562c9c..947ab0a980 100644 --- a/src/lib/components/common/RichTextInput.svelte +++ b/src/lib/components/common/RichTextInput.svelte @@ -381,8 +381,6 @@ .replace(/\u00a0/g, ' ') }); - console.log(html); - if (json) { value = editor.getJSON(); } else {