use button[type="button"] to prevent default submit behavior

pull/258/head
afc163 10 years ago
parent 9c523bd14f
commit f0a7167a49

@ -26,7 +26,7 @@ var props = {
React.render(
<Upload {...props}>
<button className="ant-btn ant-btn-ghost">
<button type="button" className="ant-btn ant-btn-ghost">
<i className="anticon anticon-upload"></i> 点击上传
</button>
</Upload>

@ -32,7 +32,7 @@ var props = {
React.render(
<Upload {...props}>
<button className="ant-btn ant-btn-ghost">
<button type="button" className="ant-btn ant-btn-ghost">
<i className="anticon anticon-upload"></i> 点击上传
</button>
</Upload>

@ -61,7 +61,7 @@ var MyUpload = React.createClass({
onChange: this.handleChange
};
return <Upload {...props} fileList={this.state.fileList}>
<button className="ant-btn ant-btn-ghost">
<button type="button" className="ant-btn ant-btn-ghost">
<i className="anticon anticon-upload"></i> 点击上传
</button>
</Upload>;

Loading…
Cancel
Save