fix: textarea input height issue

This commit is contained in:
Timothy Jaeryang Baek 2024-11-23 22:27:01 -08:00
parent c567185cb1
commit 2a5506a9cd
2 changed files with 3 additions and 5 deletions

View File

@ -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));

View File

@ -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 = '';