rc-upload
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -95,3 +95,6 @@ 'use strict'; | ||
if (!props.beforeUpload) { | ||
return this.post(file); | ||
// always async in case use react state to keep fileList | ||
return setTimeout(function () { | ||
return _this.post(file); | ||
}, 0); | ||
} | ||
@@ -109,3 +112,5 @@ | ||
} else if (before !== false) { | ||
this.post(file); | ||
setTimeout(function () { | ||
return _this.post(file); | ||
}, 0); | ||
} | ||
@@ -112,0 +117,0 @@ }, |
{ | ||
"name": "rc-upload", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "upload ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25467
612