Fix setState on unmounted Upload, close #5162

This commit is contained in:
afc163 2017-03-03 20:19:56 +08:00
parent d3a967f346
commit a82ab5fc4b

View File

@ -90,6 +90,10 @@ export default class Upload extends React.Component<UploadProps, any> {
};
}
componentWillUnmount() {
this.clearProgressTimer();
}
onStart = (file) => {
let targetItem;
let nextFileList = this.state.fileList.concat();