aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-03-24 06:01:05 +0800
committerDan Finlay <dan@danfinlay.com>2017-03-24 06:01:05 +0800
commit612bace17d8fb84fd755a30f03fc9075b4d967f1 (patch)
tree95215b0743def3a603733058fdd18eb877ee4713 /ui
parentbda821f14478b67b5fee6e862fc2a5458594e672 (diff)
downloadtangerine-wallet-browser-612bace17d8fb84fd755a30f03fc9075b4d967f1.tar
tangerine-wallet-browser-612bace17d8fb84fd755a30f03fc9075b4d967f1.tar.gz
tangerine-wallet-browser-612bace17d8fb84fd755a30f03fc9075b4d967f1.tar.bz2
tangerine-wallet-browser-612bace17d8fb84fd755a30f03fc9075b4d967f1.tar.lz
tangerine-wallet-browser-612bace17d8fb84fd755a30f03fc9075b4d967f1.tar.xz
tangerine-wallet-browser-612bace17d8fb84fd755a30f03fc9075b4d967f1.tar.zst
tangerine-wallet-browser-612bace17d8fb84fd755a30f03fc9075b4d967f1.zip
Prevent default for reset and reject buttons
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/pending-tx.js3
-rw-r--r--ui/app/conf-tx.js1
2 files changed, 3 insertions, 1 deletions
diff --git a/ui/app/components/pending-tx.js b/ui/app/components/pending-tx.js
index 75004b208..6753fc098 100644
--- a/ui/app/components/pending-tx.js
+++ b/ui/app/components/pending-tx.js
@@ -286,8 +286,9 @@ PendingTx.prototype.render = function () {
: null,
h('button', {
- onClick: () => {
+ onClick: (event) => {
this.resetGasFields()
+ event.preventDefault()
},
}, 'Reset'),
diff --git a/ui/app/conf-tx.js b/ui/app/conf-tx.js
index ce7422f9c..83e2c7482 100644
--- a/ui/app/conf-tx.js
+++ b/ui/app/conf-tx.js
@@ -180,6 +180,7 @@ ConfirmTxScreen.prototype.sendTransaction = function (txData, event) {
ConfirmTxScreen.prototype.cancelTransaction = function (txData, event) {
this.stopPropagation(event)
+ event.preventDefault()
this.props.dispatch(actions.cancelTx(txData))
}