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.
@@ -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,
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rsuite",
3
- "version": "4.10.4",
3
+ "version": "4.10.5",
4
4
  "description": "A suite of react components",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -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] = {