Browse Source

restructure hidden input, add tabindex="-1"

Artur Paikin 7 years ago
parent
commit
2eb6b584a5
1 changed files with 8 additions and 3 deletions
  1. 8 3
      src/plugins/Dashboard/ActionBrowseTagline.js

+ 8 - 3
src/plugins/Dashboard/ActionBrowseTagline.js

@@ -2,9 +2,14 @@ const html = require('yo-yo')
 
 module.exports = (props) => {
   const input = html`
-    <input class="UppyDashboard-input" aria-hidden="true" type="file" name="files[]" multiple="true"
-           onchange=${props.handleInputChange} />
-  `
+    <input class="UppyDashboard-input"
+           hidden="true"
+           aria-hidden="true" 
+           tabindex="-1" 
+           type="file" 
+           name="files[]" 
+           multiple="true"
+           onchange=${props.handleInputChange} />`
 
   return html`
     <span>