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,
|
||||
|
||||
h('button', {
|
||||
onClick: () => {
|
||||
onClick: (event) => {
|
||||
this.resetGasFields()
|
||||
event.preventDefault()
|
||||
},
|
||||
}, 'Reset'),
|
||||
|
||||
|
@ -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))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user