fix(chat): prevent stuck drop overlay when dragging outside window in firefox (#21664)

This commit is contained in:
G30
2026-02-20 15:01:24 -05:00
committed by GitHub
parent 2a804541e0
commit f5e5632afc
+4 -1
View File
@@ -797,7 +797,10 @@
}
};
const onDragLeave = () => {
const onDragLeave = (e) => {
if (e.currentTarget.contains(e.relatedTarget)) {
return;
}
dragged = false;
};