From 0044d016c3b92e144b8ece3fcc399ae1382dde42 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 6 Jan 2022 13:31:04 +0530 Subject: [PATCH] fix drag and drop in the drive --- www/common/drive-ui.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index d8dbf72f4..311669c9e 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -1995,7 +1995,10 @@ define([ return f; }).filter(Boolean); // Continue only with the files - return void onFileDrop(fileDrop, ev); + // if there are no files, fall through to other handlers + if (fileDrop.length) { + return void onFileDrop(fileDrop, ev); + } } var oldPaths = JSON.parse(data).path;