summaryrefslogtreecommitdiff
path: root/web-ui/src/common
diff options
context:
space:
mode:
authorthaissiqueira <thais.siqueira@thoughtworks.com>2017-03-02 16:04:55 -0300
committerGitHub <noreply@github.com>2017-03-02 16:04:55 -0300
commitc36b8ca0fee86f52096a5336fd009d58a7279f37 (patch)
treef0a3265762dba4e2d4f49c3124196d58eda01284 /web-ui/src/common
parentb67abc5e64206672840320a5e2c89fda5d484c78 (diff)
parent1a1999cc129fe4d9046a22146deca6838a6fb1d5 (diff)
Merge pull request #995 from pixelated/login-errors
[#907] Puts autofocus on username field
Diffstat (limited to 'web-ui/src/common')
-rw-r--r--web-ui/src/common/input_field/input_field.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web-ui/src/common/input_field/input_field.js b/web-ui/src/common/input_field/input_field.js
index a92faeb9..332d5911 100644
--- a/web-ui/src/common/input_field/input_field.js
+++ b/web-ui/src/common/input_field/input_field.js
@@ -19,11 +19,11 @@ import React from 'react';
import './input_field.scss';
-const InputField = ({ label, name, type = 'text' }) => (
+const InputField = ({ label, name, type = 'text', ...other }) => (
<div className='input-field-group'>
<input
type={type} name={name} className='input-field'
- autoFocus='' required
+ required {...other}
/>
<label className='input-field-label' htmlFor={name}>{label}</label>
</div>