diff options
author | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2018-09-18 07:56:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-18 07:56:01 +0800 |
commit | 0eca1fb9e0184f2bc1142327f0e4a7b30adf17bf (patch) | |
tree | 6c954578a33fa2a18c5860cd55289504e1759f37 | |
parent | 40e075f0eaf3db84507b2fc0967293ad51a4ba40 (diff) | |
parent | 80a57d350c7659d77130d24dbac369cef806c4cb (diff) | |
download | tangerine-wallet-browser-0eca1fb9e0184f2bc1142327f0e4a7b30adf17bf.tar tangerine-wallet-browser-0eca1fb9e0184f2bc1142327f0e4a7b30adf17bf.tar.gz tangerine-wallet-browser-0eca1fb9e0184f2bc1142327f0e4a7b30adf17bf.tar.bz2 tangerine-wallet-browser-0eca1fb9e0184f2bc1142327f0e4a7b30adf17bf.tar.lz tangerine-wallet-browser-0eca1fb9e0184f2bc1142327f0e4a7b30adf17bf.tar.xz tangerine-wallet-browser-0eca1fb9e0184f2bc1142327f0e4a7b30adf17bf.tar.zst tangerine-wallet-browser-0eca1fb9e0184f2bc1142327f0e4a7b30adf17bf.zip |
Merge pull request #5268 from lastblocklabs/issue-5231v4.10.0
Improvement: Allow enter to submit password form
-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> ) |