diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 68f6023d7..2cd766367 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -888,11 +888,10 @@ await tick(); // Reset chat input textarea - const chatInputContainer = document.getElementById('chat-input-container'); + const chatInputElement = document.getElementById('chat-input'); - if (chatInputContainer) { - chatInputContainer.value = ''; - chatInputContainer.style.height = ''; + if (chatInputElement) { + chatInputElement.style.height = ''; } const _files = JSON.parse(JSON.stringify(files)); diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index c922715d5..9016e979d 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -881,7 +881,6 @@ on:input={async (e) => { e.target.style.height = ''; e.target.style.height = Math.min(e.target.scrollHeight, 200) + 'px'; - user = null; }} on:focus={async (e) => { e.target.style.height = '';