diff options
author | Dan J Miller <danjm.com@gmail.com> | 2018-06-01 01:39:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-01 01:39:13 +0800 |
commit | 15f4ce352ddb88c43659ddd6fa29e53126d2a68c (patch) | |
tree | f96e1e8d130a045b88dd67af286b3e2a4ec5c9c6 /ui/app/components/send_/send-content/send-amount-row/send-amount-row.component.js | |
parent | 6d8344d0d0af3734255a0e9e79d857d84b5fe2aa (diff) | |
parent | 3745c1ea4fd62f092c7e277a16b9204b0c0ddaea (diff) | |
download | tangerine-wallet-browser-15f4ce352ddb88c43659ddd6fa29e53126d2a68c.tar.gz tangerine-wallet-browser-15f4ce352ddb88c43659ddd6fa29e53126d2a68c.tar.zst tangerine-wallet-browser-15f4ce352ddb88c43659ddd6fa29e53126d2a68c.zip |
Merge pull request #4386 from MetaMask/i4077-replace-currency-input-with-numeric-input
Replace currency-input.js with NumericInput
Diffstat (limited to 'ui/app/components/send_/send-content/send-amount-row/send-amount-row.component.js')
-rw-r--r-- | ui/app/components/send_/send-content/send-amount-row/send-amount-row.component.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/app/components/send_/send-content/send-amount-row/send-amount-row.component.js b/ui/app/components/send_/send-content/send-amount-row/send-amount-row.component.js index b094d0cd5..8aefeed4a 100644 --- a/ui/app/components/send_/send-content/send-amount-row/send-amount-row.component.js +++ b/ui/app/components/send_/send-content/send-amount-row/send-amount-row.component.js @@ -49,11 +49,10 @@ export default class SendAmountRow extends Component { }) } - handleAmountChange (amount) { + updateAmount (amount) { const { updateSendAmount, setMaxModeTo } = this.props setMaxModeTo(false) - this.validateAmount(amount) updateSendAmount(amount) } @@ -78,7 +77,8 @@ export default class SendAmountRow extends Component { <CurrencyDisplay conversionRate={amountConversionRate} convertedCurrency={convertedCurrency} - handleChange={newAmount => this.handleAmountChange(newAmount)} + onBlur={newAmount => this.updateAmount(newAmount)} + onChange={newAmount => this.validateAmount(newAmount)} inError={inError} primaryCurrency={primaryCurrency || 'ETH'} selectedToken={selectedToken} |