diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index a0b7af2f..f1237f77 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -40,7 +40,7 @@ let edit = false; let editedContent = ''; - let editElement: HTMLTextAreaElement; + let editTextAreaElement: HTMLTextAreaElement; let tooltipInstance = null; let sentencesAudio = {}; @@ -248,8 +248,8 @@ await tick(); - editElement.style.height = ''; - editElement.style.height = `${editElement.scrollHeight}px`; + editTextAreaElement.style.height = ''; + editTextAreaElement.style.height = `${editTextAreaElement.scrollHeight}px`; }; const editMessageConfirmHandler = async () => { @@ -340,7 +340,7 @@