mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
Fix info.fileList in multiple upload
This commit is contained in:
parent
5c00b0e66b
commit
897315784d
@ -80,14 +80,19 @@ const AntUpload = React.createClass({
|
||||
return {
|
||||
fileList: prevState.fileList.concat(info.file)
|
||||
};
|
||||
}, function() {
|
||||
info.fileList = this.state.fileList;
|
||||
this.props.onChange(info);
|
||||
});
|
||||
} else {
|
||||
this.setState({
|
||||
fileList: info.fileList
|
||||
}, function() {
|
||||
info.fileList = this.state.fileList;
|
||||
this.props.onChange(info);
|
||||
});
|
||||
}
|
||||
}
|
||||
this.props.onChange(info);
|
||||
},
|
||||
getDefaultProps() {
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user