From 344c91e37a43c46790e1338b134561f3e79ab570 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 19 Dec 2023 14:53:14 -0800 Subject: [PATCH] fix: dragleave event added --- src/lib/components/chat/MessageInput.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index d83a5fcd..54291f22 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -123,6 +123,10 @@ dragged = false; }); + + dropZone?.addEventListener('dragleave', () => { + dragged = false; + }); });