diff --git a/src/pages/User/Login.js b/src/pages/User/Login.js index 54dd5c40d9282b50ff7003d709bbfbf3758a4d41..1987c639a417eb6b9a1821a0df5f7cbc7d77776e 100644 --- a/src/pages/User/Login.js +++ b/src/pages/User/Login.js @@ -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)}} />