Pārlūkot izejas kodu

Fix DragDrop input click

Artur Paikin 9 gadi atpakaļ
vecāks
revīzija
39cd0869f5
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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 target = this.opts.target.name
 
 
     const onSelect = (ev) => {
     const onSelect = (ev) => {
-      this.input.click()
+      const input = document.querySelector(`${this.target} .UppyDragDrop-input`)
+      input.click()
     }
     }
 
 
     const next = (ev) => {
     const next = (ev) => {