Fix info.fileList in multiple upload

This commit is contained in:
afc163 2015-09-08 18:26:18 +08:00
parent 5c00b0e66b
commit 897315784d

View File

@ -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 {