From f0c4ecbc8f4d5dcfe5bbe1f28b519176c6c7279f Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Fri, 11 Mar 2016 16:22:38 +0800 Subject: [PATCH] fix: suppress submit event by default #1173 --- components/form/Form.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/form/Form.jsx b/components/form/Form.jsx index 4139a0e8e4..b01377f9a1 100644 --- a/components/form/Form.jsx +++ b/components/form/Form.jsx @@ -35,6 +35,9 @@ Form.propTypes = { Form.defaultProps = { prefixCls: 'ant-form', + onSubmit(e) { + e.preventDefault(); + }, }; Form.childContextTypes = {