diff --git a/src/DropZone/widget/lib/dropzone.js b/src/DropZone/widget/lib/dropzone.js index 25ec3a4..e22b032 100644 --- a/src/DropZone/widget/lib/dropzone.js +++ b/src/DropZone/widget/lib/dropzone.js @@ -686,7 +686,19 @@ _this.hiddenFileInput.click(); } return true; - } + }, + /* + // scb fix for iOS8 + // it was supposed to be fixed in https://github.com/enyo/dropzone/issues/935 release 4.1.1 + // yet in 4.3.0 it doesn't work anymore so I added the touchstart and stopPropagation + */ + "touchstart": function(evt) { + evt.stopPropagation(); + if ((clickableElement !== _this.element) || (evt.target === _this.element || Dropzone.elementInside(evt.target, _this.element.querySelector(".dz-message")))) { + _this.hiddenFileInput.click(); + } + return true; + } } }); }; @@ -1780,4 +1792,4 @@ }).call(this); return module.exports; -})); \ No newline at end of file +}));