Browse Source

Fix info.fileList in multiple upload

pull/258/head
afc163 9 years ago
parent
commit
897315784d
  1. 7
      components/upload/index.jsx

7
components/upload/index.jsx

@ -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…
Cancel
Save