diff options
author | Chi Kei Chan <chikeichan@gmail.com> | 2017-09-26 10:55:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-26 10:55:56 +0800 |
commit | 0d4433ed58ea7c5f9518170b7be44b194041eba7 (patch) | |
tree | 6635c935a75e69ed8d33703f6b174511df0b9cab /ui/app/send.js | |
parent | fc3e071ad699f6c3586a20f12e06e6f456b0eea3 (diff) | |
parent | 5f6ec6aa982101bed57d9a8766330af71a274183 (diff) | |
download | tangerine-wallet-browser-0d4433ed58ea7c5f9518170b7be44b194041eba7.tar tangerine-wallet-browser-0d4433ed58ea7c5f9518170b7be44b194041eba7.tar.gz tangerine-wallet-browser-0d4433ed58ea7c5f9518170b7be44b194041eba7.tar.bz2 tangerine-wallet-browser-0d4433ed58ea7c5f9518170b7be44b194041eba7.tar.lz tangerine-wallet-browser-0d4433ed58ea7c5f9518170b7be44b194041eba7.tar.xz tangerine-wallet-browser-0d4433ed58ea7c5f9518170b7be44b194041eba7.tar.zst tangerine-wallet-browser-0d4433ed58ea7c5f9518170b7be44b194041eba7.zip |
Merge branch 'NewUI-flat' into MM-57-use-gas-estimator
Diffstat (limited to 'ui/app/send.js')
-rw-r--r-- | ui/app/send.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ui/app/send.js b/ui/app/send.js index 033692910..8791e9124 100644 --- a/ui/app/send.js +++ b/ui/app/send.js @@ -130,7 +130,10 @@ SendTransactionScreen.prototype.renderFromInput = function (from, identities) { }) }, onBlur: () => this.setErrorsFor('from'), - onFocus: () => this.clearErrorsFor('from'), + onFocus: event => { + this.clearErrorsFor('from') + this.state.newTx.from && event.target.select() + }, }), h('datalist#accounts', [ @@ -170,7 +173,10 @@ SendTransactionScreen.prototype.renderToInput = function (to, identities, addres this.setErrorsFor('to') this.estimateGasAndPrice() }, - onFocus: () => this.clearErrorsFor('to'), + onFocus: event => { + this.clearErrorsFor('to') + this.state.newTx.to && event.target.select() + }, }), h('datalist#addresses', [ |