Ver Fonte

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

Johan Ahlen há 7 anos atrás
pai
commit
d1b6901aa9

+ 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);
     }
   };