We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aef794c commit 9ded337Copy full SHA for 9ded337
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "rc-upload",
3
- "version": "2.0.3",
+ "version": "2.0.4",
4
"description": "upload ui component for react",
5
"keywords": [
6
"react",
src/AjaxUploader.jsx
@@ -1,3 +1,5 @@
+/* eslint react/no-is-mounted:0*/
+
import request from './request';
import React, { PropTypes } from 'react';
import getUid from './uid';
@@ -96,6 +98,9 @@ const AjaxUploader = React.createClass({
96
98
},
97
99
100
post(file) {
101
+ if (!this.isMounted()) {
102
+ return;
103
+ }
104
const { props } = this;
105
let { data } = props;
106
const { onStart } = props;
0 commit comments