From 15d1a48dc2bee3cfb2148d3d62d2c74006e51d58 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 10 Dec 2023 23:09:24 -0800 Subject: [PATCH] fix: edit input auto height --- src/lib/components/chat/Messages.svelte | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/lib/components/chat/Messages.svelte b/src/lib/components/chat/Messages.svelte index 2a9509959..aa7bde72c 100644 --- a/src/lib/components/chat/Messages.svelte +++ b/src/lib/components/chat/Messages.svelte @@ -432,11 +432,6 @@ class=" bg-transparent outline-none w-full resize-none" bind:value={history.messages[message.id].editedContent} on:input={(e) => { - e.target.style.height = ''; - e.target.style.height = `${e.target.scrollHeight}px`; - }} - on:focus={(e) => { - e.target.style.height = ''; e.target.style.height = `${e.target.scrollHeight}px`; }} /> @@ -634,17 +629,8 @@ class=" bg-transparent outline-none w-full resize-none" bind:value={history.messages[message.id].editedContent} on:input={(e) => { - e.target.style.height = ''; e.target.style.height = `${e.target.scrollHeight}px`; }} - on:focus={(e) => { - e.target.style.height = ''; - e.target.style.height = `${e.target.scrollHeight}px`; - }} - on:load={() => { - console.log('loadeddd'); - }} - on:loadstart />