diff options
author | Sean Rabaut <rabautse@gmail.com> | 2018-09-15 03:45:21 +0800 |
---|---|---|
committer | Sean Rabaut <rabautse@gmail.com> | 2018-09-15 03:45:21 +0800 |
commit | 80a57d350c7659d77130d24dbac369cef806c4cb (patch) | |
tree | 71fbabac63b56c57984e0efa0bf00b2be4106c14 /mascara/src | |
parent | d34edaada169a3e967fa1ba3a3ff00cc6d00c016 (diff) | |
download | tangerine-wallet-browser-80a57d350c7659d77130d24dbac369cef806c4cb.tar tangerine-wallet-browser-80a57d350c7659d77130d24dbac369cef806c4cb.tar.gz tangerine-wallet-browser-80a57d350c7659d77130d24dbac369cef806c4cb.tar.bz2 tangerine-wallet-browser-80a57d350c7659d77130d24dbac369cef806c4cb.tar.lz tangerine-wallet-browser-80a57d350c7659d77130d24dbac369cef806c4cb.tar.xz tangerine-wallet-browser-80a57d350c7659d77130d24dbac369cef806c4cb.tar.zst tangerine-wallet-browser-80a57d350c7659d77130d24dbac369cef806c4cb.zip |
Improvement: Allow enter to submit password form
Diffstat (limited to 'mascara/src')
-rw-r--r-- | mascara/src/app/first-time/create-password-screen.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mascara/src/app/first-time/create-password-screen.js b/mascara/src/app/first-time/create-password-screen.js index 6b284f7c5..0908787da 100644 --- a/mascara/src/app/first-time/create-password-screen.js +++ b/mascara/src/app/first-time/create-password-screen.js @@ -63,7 +63,9 @@ class CreatePasswordScreen extends Component { return password === confirmPassword } - createAccount = () => { + createAccount = (event) => { + event.preventDefault() + if (!this.isValid()) { return } @@ -127,7 +129,7 @@ class CreatePasswordScreen extends Component { It allows you to hold ether & tokens, and interact with decentralized applications. </div> </div>} - <div className="create-password"> + <form className="create-password"> <div className="create-password__title"> Create Password </div> @@ -188,7 +190,7 @@ class CreatePasswordScreen extends Component { </a> { */ } <Breadcrumbs total={3} currentIndex={0} /> - </div> + </form> </div> </div> ) |