Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions src/DropZone/widget/lib/dropzone.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
});
};
Expand Down Expand Up @@ -1780,4 +1792,4 @@
}).call(this);

return module.exports;
}));
}));