Try login when user presses enter on password field
This commit is contained in:
parent
f7570c5847
commit
5c5aec1d94
1 changed files with 1 additions and 0 deletions
|
@ -63,6 +63,7 @@ function View({
|
||||||
type="password"
|
type="password"
|
||||||
value={password}
|
value={password}
|
||||||
onChange={e => onChangePassword(e.target.value)}
|
onChange={e => onChangePassword(e.target.value)}
|
||||||
|
onKeyDown={e => (e.key === 'Enter' ? onTryLogin() : null)}
|
||||||
/>
|
/>
|
||||||
<Button
|
<Button
|
||||||
disabled={!isSubmitable}
|
disabled={!isSubmitable}
|
||||||
|
|
Loading…
Reference in a new issue