Browse Source

HUE-8326 [assist] Prevent the file upload dialog from showing twice after clicking '+'

(cherry picked from commit d1b6901aa967729e3e3921083fb4082565b4db24)
Johan Ahlen 7 years ago
parent
commit
c12bc30137
1 changed files with 5 additions and 0 deletions
  1. 5 0
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

+ 5 - 0
desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

@@ -7206,6 +7206,11 @@
       $.extend(options, value);
 
       $(element).addClass('dropzone');
+      
+      $(element).on('click', function (e) {
+        e.stopPropagation();
+      });
+
       new Dropzone(element, options);
     }
   };