Unverified Commit bf78f566 authored by 偏右's avatar 偏右 Committed by GitHub

Merge pull request #20 from laozhu/fix_user_login

Fix login form submit problem with no tab
parents 5f6b84ed 6fd621c4
......@@ -127,9 +127,9 @@ class Login extends Component<LoginProps, LoginState> {
return (
<LoginContext.Provider value={this.getContext()}>
<div className={classNames(className, styles.login)}>
{tabs.length ? (
<React.Fragment>
<Form onSubmit={this.handleSubmit}>
<Form onSubmit={this.handleSubmit}>
{tabs.length ? (
<React.Fragment>
<Tabs
animated={false}
className={styles.tabs}
......@@ -139,11 +139,11 @@ class Login extends Component<LoginProps, LoginState> {
{TabChildren}
</Tabs>
{otherChildren}
</Form>
</React.Fragment>
) : (
children
)}
</React.Fragment>
) : (
children
)}
</Form>
</div>
</LoginContext.Provider>
);
......
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