Ver Fonte

Added comment about why empty value

Artur Paikin há 7 anos atrás
pai
commit
a7d3036695

+ 2 - 0
src/plugins/Dashboard/ActionBrowseTagline.js

@@ -11,6 +11,8 @@ class ActionBrowseTagline extends Component {
   }
   }
 
 
   render () {
   render () {
+    // empty value=""  on file input, so we can select same file
+    // after removing it from Uppy — otherwise OS thinks it’s selected
     return (
     return (
       <span>
       <span>
         {this.props.acquirers.length === 0
         {this.props.acquirers.length === 0

+ 3 - 0
src/plugins/Dashboard/Tabs.js

@@ -29,6 +29,9 @@ class Tabs extends Component {
       )
       )
     }
     }
 
 
+    // empty value=""  on file input, so we can select same file
+    // after removing it from Uppy — otherwise OS thinks it’s selected
+
     return <div class="uppy-DashboardTabs">
     return <div class="uppy-DashboardTabs">
       <ul class="uppy-DashboardTabs-list" role="tablist">
       <ul class="uppy-DashboardTabs-list" role="tablist">
         <li class="uppy-DashboardTab" role="presentation">
         <li class="uppy-DashboardTab" role="presentation">