Skip to content

Commit f5caa22

Browse files
committed
Added invisible submit button to make Enter work
1 parent 14ba8c5 commit f5caa22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dashboard/src/auth/Login.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, { Component } from 'react';
22
import { Button, Container, Form, Icon, Message, Modal } from 'semantic-ui-react';
3+
import { css } from 'react-emotion';
34

45
const LoginView = ({username, password, usernameChanged, passwordChanged, doLogin, error}) => (
56
<Container>
@@ -12,6 +13,7 @@ const LoginView = ({username, password, usernameChanged, passwordChanged, doLogi
1213
<label>Password</label>
1314
<input type="password" value={password} onChange={(e) => passwordChanged(e.target.value)}/>
1415
</Form.Field>
16+
<Form.Button className={css`display:none`} type="submit" />
1517
</Form>
1618
{(error) ? <Message error content={error}/> : null}
1719
</Container>

0 commit comments

Comments
 (0)