From 846a0e010ef3a76177b7801055339c8397bc748f Mon Sep 17 00:00:00 2001 From: Ross Date: Fri, 12 Nov 2021 13:58:42 +0000 Subject: [PATCH] . --- rapids/templates/rapids/rapid_form.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/rapids/templates/rapids/rapid_form.html b/rapids/templates/rapids/rapid_form.html index 04640190..0309f60d 100755 --- a/rapids/templates/rapids/rapid_form.html +++ b/rapids/templates/rapids/rapid_form.html @@ -11,7 +11,6 @@ // set to hold the files that are still being processed let active_file_inputs = new Set(); - let drops_processing = false; async function listAllFilesAndDirs(dirHandle, files_only) { const files = []; @@ -231,7 +230,6 @@ // Loop through each dropped file and try to assign to an // input element - drops_processing = true; [...evt.dataTransfer.files].forEach((f) => { feedback = false; if (evt.target.id == "feedback-drop-target") { @@ -239,7 +237,6 @@ } addFile(f, feedback) }) - drops_processing = false; evt.preventDefault(); evt.stopPropagation(); @@ -489,7 +486,7 @@ setTimeout(function (){ active_file_inputs.delete(el) console.log("active", active_file_inputs) // Only load once all queued files have been processed - if (active_file_inputs.size < 1 && !drops_processing) { + if (active_file_inputs.size < 1) { loadViewer(); } }