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;