🐛 Don't trigger drop zone w/o files

Closes #4843

Thanks to @sdmtt for the suggestion!
This commit is contained in:
Gina Häußge committed 2023-08-07 12:35:39 +02:00
1 parent 2e34dc6f54
commit ac5b3206f0
1 file changed
+7
@@ -1930,6 +1930,13 @@ $(function () {
};
self._handleDragEnter = function (e) {
const draggedFiles = Array.from(e.originalEvent.dataTransfer.items).filter(
(item) => item.kind === "file"
);
if (!draggedFiles.length) {
return;
}
self.dropOverlay.addClass("in");
var foundLocal = false;