summaryrefslogtreecommitdiff
path: root/web-ui/src/common
diff options
context:
space:
mode:
authorThais Siqueira <thais.siqueira@gmail.com>2017-03-01 11:39:36 -0300
committerThais Siqueira <thais.siqueira@gmail.com>2017-03-01 12:04:42 -0300
commit1a1999cc129fe4d9046a22146deca6838a6fb1d5 (patch)
treeda453c45a5be5d09341b3210cb3f110bdaabd972 /web-ui/src/common
parentd47933f85158a43d860b49ab32de92923e78c95c (diff)
[#907] Puts autofocus on username field.
with @anikarni
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>