提交 f0c4ecbc 编写于 作者: B Benjy Cui

fix: suppress submit event by default #1173

上级 827ac4b7
......@@ -35,6 +35,9 @@ Form.propTypes = {
Form.defaultProps = {
prefixCls: 'ant-form',
onSubmit(e) {
e.preventDefault();
},
};
Form.childContextTypes = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册