1
0
Fork 0
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:
Ewout Prangsma 2018-07-09 12:08:38 +02:00
parent 14ba8c5775
commit f5caa22da9
No known key found for this signature in database
GPG key ID: 4DBAD380D93D0698

View file

@ -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>