File tree 1 file changed +8
-2
lines changed
packages/@uppy/dashboard/src/components
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,21 @@ class AddFiles extends Component {
7
7
}
8
8
9
9
onFileInputChange = ( event ) => {
10
- this . props . handleInputChange ( event )
10
+ const elem = document . getElementsByClassName ( "uppy-Dashboard-AddFiles-title" ) [ 0 ] ;
11
+ elem . innerHTML = "<div class='uppy-loader'><span class='preloader-label'>Adding files...</span><div class='preloader'></div></div>" ;
12
+
13
+ setTimeout ( ( ) => {
14
+ this . props . handleInputChange ( event )
15
+
16
+ event . target . value = null
17
+ } , 100 )
11
18
12
19
// We clear the input after a file is selected, because otherwise
13
20
// change event is not fired in Chrome and Safari when a file
14
21
// with the same name is selected.
15
22
// ___Why not use value="" on <input/> instead?
16
23
// Because if we use that method of clearing the input,
17
24
// Chrome will not trigger change if we drop the same file twice (Issue #768).
18
- event . target . value = null
19
25
}
20
26
21
27
renderPoweredByUppy ( ) {
You can’t perform that action at this time.
0 commit comments