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 { return {
fileList: prevState.fileList.concat(info.file) fileList: prevState.fileList.concat(info.file)
}; };
}, function() {
info.fileList = this.state.fileList;
this.props.onChange(info);
}); });
} else { } else {
this.setState({ this.setState({
fileList: info.fileList fileList: info.fileList
}, function() {
info.fileList = this.state.fileList;
this.props.onChange(info);
}); });
} }
} }
this.props.onChange(info);
}, },
getDefaultProps() { getDefaultProps() {
return { return {

Loading…
Cancel
Save