Browse Source

Fix DragDrop input click

Artur Paikin 8 years ago
parent
commit
39cd0869f5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/plugins/DragDrop.js

+ 2 - 1
src/plugins/DragDrop.js

@@ -112,7 +112,8 @@ export default class DragDrop extends Plugin {
     const target = this.opts.target.name
 
     const onSelect = (ev) => {
-      this.input.click()
+      const input = document.querySelector(`${this.target} .UppyDragDrop-input`)
+      input.click()
     }
 
     const next = (ev) => {