mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
Added invisible submit button to make Enter work
This commit is contained in:
parent
14ba8c5775
commit
f5caa22da9
1 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
import React, { Component } from 'react';
|
||||
import { Button, Container, Form, Icon, Message, Modal } from 'semantic-ui-react';
|
||||
import { css } from 'react-emotion';
|
||||
|
||||
const LoginView = ({username, password, usernameChanged, passwordChanged, doLogin, error}) => (
|
||||
<Container>
|
||||
|
@ -12,6 +13,7 @@ const LoginView = ({username, password, usernameChanged, passwordChanged, doLogi
|
|||
<label>Password</label>
|
||||
<input type="password" value={password} onChange={(e) => passwordChanged(e.target.value)}/>
|
||||
</Form.Field>
|
||||
<Form.Button className={css`display:none`} type="submit" />
|
||||
</Form>
|
||||
{(error) ? <Message error content={error}/> : null}
|
||||
</Container>
|
||||
|
|
Loading…
Reference in a new issue