Commit ece38278 authored by Zhoujingsai's avatar Zhoujingsai Committed by 偏右

Fix: onPressEnter trigger twice login request in IE11

parent 07f1209b
...@@ -100,7 +100,10 @@ class LoginPage extends Component { ...@@ -100,7 +100,10 @@ class LoginPage extends Component {
message: formatMessage({ id: 'validation.password.required' }), message: formatMessage({ id: 'validation.password.required' }),
}, },
]} ]}
onPressEnter={(e) => {e.preventDefault();this.loginForm.validateFields(this.handleSubmit)}} onPressEnter={e => {
e.preventDefault();
this.loginForm.validateFields(this.handleSubmit);
}}
/> />
</Tab> </Tab>
<Tab key="mobile" tab={formatMessage({ id: 'app.login.tab-login-mobile' })}> <Tab key="mobile" tab={formatMessage({ id: 'app.login.tab-login-mobile' })}>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment