瀏覽代碼

Fix DragDrop input click

Artur Paikin 9 年之前
父節點
當前提交
39cd0869f5
共有 1 個文件被更改,包括 2 次插入1 次删除
  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) => {