Skip to content

Commit

Permalink
Remove touchstart event
Browse files Browse the repository at this point in the history
iOS9 requires the click event in order to trigger file selection dropzone#1068
  • Loading branch information
enyo committed Oct 11, 2015
1 parent 184aa89 commit 849609e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/dropzone.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -712,12 +712,7 @@ class Dropzone extends Emitter
# Only the actual dropzone or the message element should trigger file selection
if (clickableElement != @element) or (evt.target == @element or Dropzone.elementInside evt.target, @element.querySelector ".dz-message")
@hiddenFileInput.click() # Forward the click
"touchstart": (evt) =>
noPropagation evt
# Only the actual dropzone or the message element should trigger file selection
if (clickableElement != @element) or (evt.target == @element or Dropzone.elementInside evt.target, @element.querySelector ".dz-message")
@hiddenFileInput.click() # Forward the click

return true

@enable()

Expand Down

0 comments on commit 849609e

Please sign in to comment.