rsuite 4.10.4 → 4.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/rsuite.js +1 -1
- package/dist/rsuite.min.js +1 -1
- package/dist/rsuite.min.js.map +1 -1
- package/es/Uploader/Uploader.js +1 -1
- package/lib/Uploader/Uploader.js +1 -1
- package/package.json +1 -1
- package/src/Uploader/Uploader.tsx +1 -1
package/es/Uploader/Uploader.js
CHANGED
|
@@ -268,7 +268,7 @@ function (_React$Component) {
|
|
|
268
268
|
fileList: nextFileList
|
|
269
269
|
};
|
|
270
270
|
|
|
271
|
-
if (nextFile.progress) {
|
|
271
|
+
if (nextFile.progress || nextFile.status === 'error') {
|
|
272
272
|
var fileMap = this.state.fileMap;
|
|
273
273
|
fileMap[nextFile.fileKey] = {
|
|
274
274
|
progress: nextFile.progress,
|
package/lib/Uploader/Uploader.js
CHANGED
|
@@ -289,7 +289,7 @@ function (_React$Component) {
|
|
|
289
289
|
fileList: nextFileList
|
|
290
290
|
};
|
|
291
291
|
|
|
292
|
-
if (nextFile.progress) {
|
|
292
|
+
if (nextFile.progress || nextFile.status === 'error') {
|
|
293
293
|
var fileMap = this.state.fileMap;
|
|
294
294
|
fileMap[nextFile.fileKey] = {
|
|
295
295
|
progress: nextFile.progress,
|
package/package.json
CHANGED
|
@@ -284,7 +284,7 @@ class Uploader extends React.Component<UploaderProps, UploaderState> {
|
|
|
284
284
|
fileList: nextFileList
|
|
285
285
|
};
|
|
286
286
|
|
|
287
|
-
if (nextFile.progress) {
|
|
287
|
+
if (nextFile.progress || nextFile.status === 'error') {
|
|
288
288
|
const { fileMap } = this.state;
|
|
289
289
|
|
|
290
290
|
fileMap[nextFile.fileKey] = {
|