提交 07f1209b 编写于 作者: Z Zhoujingsai 提交者: 偏右

Fix: onPressEnter trigger twice login request in IE11

上级 e1290d8e
......@@ -100,7 +100,7 @@ class LoginPage extends Component {
message: formatMessage({ id: 'validation.password.required' }),
},
]}
onPressEnter={() => this.loginForm.validateFields(this.handleSubmit)}
onPressEnter={(e) => {e.preventDefault();this.loginForm.validateFields(this.handleSubmit)}}
/>
</Tab>
<Tab key="mobile" tab={formatMessage({ id: 'app.login.tab-login-mobile' })}>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册