mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 19:49:59 +08:00
Fix setState on unmounted Upload, close #5162
This commit is contained in:
parent
d3a967f346
commit
a82ab5fc4b
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user