Browse Source

fix filecard first input focus

Artur Paikin 6 years ago
parent
commit
be94a0a850
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/@uppy/dashboard/src/FileCard.js

+ 1 - 1
packages/@uppy/dashboard/src/FileCard.js

@@ -16,7 +16,7 @@ module.exports = class FileCard extends Component {
 
   componentDidMount () {
     setTimeout(() => {
-      if (!this.input) return
+      if (!this.firstInput) return
       this.firstInput.focus({ preventScroll: true })
     }, 150)
   }