From 0fc76d46db9a0589cc852291a382132226c0e5cd Mon Sep 17 00:00:00 2001 From: Carlos Daniel Vilaseca Date: Sun, 3 Mar 2024 17:30:08 -0500 Subject: [PATCH] rf: dom queries in ResponseMessageComponent --- src/lib/components/chat/Messages/ResponseMessage.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index 25426965..a0b7af2f 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 tooltipInstance = null; let sentencesAudio = {}; @@ -247,7 +247,6 @@ editedContent = message.content; await tick(); - const editElement = document.getElementById(`message-edit-${message.id}`); editElement.style.height = ''; editElement.style.height = `${editElement.scrollHeight}px`; @@ -341,6 +340,7 @@