Commit 07f1209b authored by Zhoujingsai's avatar Zhoujingsai Committed by 偏右

Fix: onPressEnter trigger twice login request in IE11

parent e1290d8e
...@@ -100,7 +100,7 @@ class LoginPage extends Component { ...@@ -100,7 +100,7 @@ class LoginPage extends Component {
message: formatMessage({ id: 'validation.password.required' }), message: formatMessage({ id: 'validation.password.required' }),
}, },
]} ]}
onPressEnter={() => 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