From 2a429af5af83bce1a9bc895eb83b455883f1f60e Mon Sep 17 00:00:00 2001 From: Romit Choudhary Date: Tue, 7 Sep 2021 14:25:32 +0530 Subject: [PATCH] Fixes #3725 - Drop files here not disappearing after dropping a file --- app/assets/javascripts/app/lib/base/html5Upload.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/app/lib/base/html5Upload.js b/app/assets/javascripts/app/lib/base/html5Upload.js index 016dc2115..40287b23f 100644 --- a/app/assets/javascripts/app/lib/base/html5Upload.js +++ b/app/assets/javascripts/app/lib/base/html5Upload.js @@ -102,8 +102,10 @@ } }; onDrop = function (e) { + inCounter = 0 e.preventDefault() e.stopPropagation() + hideDropZone(dropContainer) manager.processFiles(e.dataTransfer.files) }; onDragEnd = function (e) {