diff options
author | Dan <danjm.com@gmail.com> | 2017-09-23 05:17:05 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-09-26 09:30:56 +0800 |
commit | 56697ea9a4399ecaccf33ae3ae1a42283bdc9dc7 (patch) | |
tree | 0c5c6261d5ce37ba999726dab78678df7daea870 /ui/app/send.js | |
parent | eae40e054418c195310224194d9435ccfbf14e46 (diff) | |
download | tangerine-wallet-browser-56697ea9a4399ecaccf33ae3ae1a42283bdc9dc7.tar tangerine-wallet-browser-56697ea9a4399ecaccf33ae3ae1a42283bdc9dc7.tar.gz tangerine-wallet-browser-56697ea9a4399ecaccf33ae3ae1a42283bdc9dc7.tar.bz2 tangerine-wallet-browser-56697ea9a4399ecaccf33ae3ae1a42283bdc9dc7.tar.lz tangerine-wallet-browser-56697ea9a4399ecaccf33ae3ae1a42283bdc9dc7.tar.xz tangerine-wallet-browser-56697ea9a4399ecaccf33ae3ae1a42283bdc9dc7.tar.zst tangerine-wallet-browser-56697ea9a4399ecaccf33ae3ae1a42283bdc9dc7.zip |
Select all in to and from of send screens, instead of clearing on focus.
Diffstat (limited to 'ui/app/send.js')
-rw-r--r-- | ui/app/send.js | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/ui/app/send.js b/ui/app/send.js index 8fab8a384..ac1ee0d84 100644 --- a/ui/app/send.js +++ b/ui/app/send.js @@ -123,14 +123,9 @@ SendTransactionScreen.prototype.renderFromInput = function (from, identities) { }) }, onBlur: () => this.setErrorsFor('from'), - onFocus: () => { + onFocus: event => { this.clearErrorsFor('from'), - this.state.newTx.from && this.setState({ - newTx: { - ...this.state.newTx, - from: '', - }, - }) + this.state.newTx.from && event.target.select() }, }), @@ -168,14 +163,9 @@ SendTransactionScreen.prototype.renderToInput = function (to, identities, addres }) }, onBlur: () => this.setErrorsFor('to'), - onFocus: () => { + onFocus: event => { this.clearErrorsFor('to') - this.state.newTx.to && this.setState({ - newTx: { - ...this.state.newTx, - to: '', - }, - }) + this.state.newTx.to && event.target.select() }, }), |