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:
parent
bda821f144
commit
612bace17d
@ -286,8 +286,9 @@ PendingTx.prototype.render = function () {
|
|||||||
: null,
|
: null,
|
||||||
|
|
||||||
h('button', {
|
h('button', {
|
||||||
onClick: () => {
|
onClick: (event) => {
|
||||||
this.resetGasFields()
|
this.resetGasFields()
|
||||||
|
event.preventDefault()
|
||||||
},
|
},
|
||||||
}, 'Reset'),
|
}, 'Reset'),
|
||||||
|
|
||||||
|
@ -180,6 +180,7 @@ ConfirmTxScreen.prototype.sendTransaction = function (txData, event) {
|
|||||||
|
|
||||||
ConfirmTxScreen.prototype.cancelTransaction = function (txData, event) {
|
ConfirmTxScreen.prototype.cancelTransaction = function (txData, event) {
|
||||||
this.stopPropagation(event)
|
this.stopPropagation(event)
|
||||||
|
event.preventDefault()
|
||||||
this.props.dispatch(actions.cancelTx(txData))
|
this.props.dispatch(actions.cancelTx(txData))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user