Explorar el Código

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

Johan Ahlen hace 8 años
padre
commit
d1b6901aa9
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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);
     }
   };