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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -797,7 +797,10 @@
}
};
const onDragLeave = () => {
const onDragLeave = (e) => {
if (e.currentTarget.contains(e.relatedTarget)) {
return;
}
dragged = false;
};