Skip to content

Commit f5e5632

Browse files
authored
fix(chat): prevent stuck drop overlay when dragging outside window in firefox (open-webui#21664)
1 parent 2a80454 commit f5e5632

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/lib/components/chat/MessageInput.svelte

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,10 @@
797797
}
798798
};
799799
800-
const onDragLeave = () => {
800+
const onDragLeave = (e) => {
801+
if (e.currentTarget.contains(e.relatedTarget)) {
802+
return;
803+
}
801804
dragged = false;
802805
};
803806

0 commit comments

Comments
 (0)