From c854c82d6e62a375ec45b3d78e6fdbc755836c94 Mon Sep 17 00:00:00 2001 From: Niek van der Maas Date: Mon, 6 Mar 2023 08:23:08 +0100 Subject: [PATCH] Remove TS ignore --- src/lib/Chat.svelte | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib/Chat.svelte b/src/lib/Chat.svelte index c60afe3..9400096 100644 --- a/src/lib/Chat.svelte +++ b/src/lib/Chat.svelte @@ -192,15 +192,13 @@ if (e.key === "Enter" && !e.shiftKey) { send(); // Resize back to auto - // @ts-ignore - e.target.style.height = "auto"; + input.style.height = "auto"; e.preventDefault(); } }} on:input={(e) => { // Resize the textarea to fit the content - // @ts-ignore - e.target.style.height = e.target.scrollHeight + "px"; + input.style.height = input.scrollHeight + "px"; }} bind:this={input} />