mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Able to change selections in to and from fields of send and send token.
This commit is contained in:
parent
2c474b0d6e
commit
eae40e0544
@ -181,6 +181,7 @@ SendTokenScreen.prototype.renderToAddressInput = function () {
|
|||||||
to: e.target.value,
|
to: e.target.value,
|
||||||
errors: {},
|
errors: {},
|
||||||
}),
|
}),
|
||||||
|
onFocus: () => to && this.setState({ to: '' }),
|
||||||
}),
|
}),
|
||||||
h('datalist#addresses', [
|
h('datalist#addresses', [
|
||||||
// Corresponds to the addresses owned.
|
// Corresponds to the addresses owned.
|
||||||
|
@ -123,7 +123,15 @@ SendTransactionScreen.prototype.renderFromInput = function (from, identities) {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
onBlur: () => this.setErrorsFor('from'),
|
onBlur: () => this.setErrorsFor('from'),
|
||||||
onFocus: () => this.clearErrorsFor('from'),
|
onFocus: () => {
|
||||||
|
this.clearErrorsFor('from'),
|
||||||
|
this.state.newTx.from && this.setState({
|
||||||
|
newTx: {
|
||||||
|
...this.state.newTx,
|
||||||
|
from: '',
|
||||||
|
},
|
||||||
|
})
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
|
|
||||||
h('datalist#accounts', [
|
h('datalist#accounts', [
|
||||||
@ -160,7 +168,15 @@ SendTransactionScreen.prototype.renderToInput = function (to, identities, addres
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
onBlur: () => this.setErrorsFor('to'),
|
onBlur: () => this.setErrorsFor('to'),
|
||||||
onFocus: () => this.clearErrorsFor('to'),
|
onFocus: () => {
|
||||||
|
this.clearErrorsFor('to')
|
||||||
|
this.state.newTx.to && this.setState({
|
||||||
|
newTx: {
|
||||||
|
...this.state.newTx,
|
||||||
|
to: '',
|
||||||
|
},
|
||||||
|
})
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
|
|
||||||
h('datalist#addresses', [
|
h('datalist#addresses', [
|
||||||
|
Loading…
Reference in New Issue
Block a user