1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Prevent default for reset and reject buttons

This commit is contained in:
Dan Finlay 2017-03-23 15:01:05 -07:00
parent bda821f144
commit 612bace17d
2 changed files with 3 additions and 1 deletions

View File

@ -286,8 +286,9 @@ PendingTx.prototype.render = function () {
: null,
h('button', {
onClick: () => {
onClick: (event) => {
this.resetGasFields()
event.preventDefault()
},
}, 'Reset'),

View File

@ -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))
}