diff options
Diffstat (limited to 'web-ui/src')
-rw-r--r-- | web-ui/src/common/input_field/input_field.js | 4 | ||||
-rw-r--r-- | web-ui/src/login/page.js | 2 |
2 files changed, 3 insertions, 3 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> diff --git a/web-ui/src/login/page.js b/web-ui/src/login/page.js index 6be240b2..621cf846 100644 --- a/web-ui/src/login/page.js +++ b/web-ui/src/login/page.js @@ -45,7 +45,7 @@ export const Page = ({ t, authError, error }) => ( {rightPanel(t, error)} <form className='standard' id='login_form' action='/login' method='post' noValidate > {errorMessage(t, authError)} - <InputField name='username' label={t('login.email')} /> + <InputField name='username' label={t('login.email')} autoFocus /> <InputField type='password' name='password' label={t('login.password')} /> <SubmitButton buttonText={t('login.submit')} /> </form> |