diff options
author | Dan J Miller <danjm.com@gmail.com> | 2018-03-21 06:50:30 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@users.noreply.github.com> | 2018-03-21 06:50:30 +0800 |
commit | a69480d78d3a97310c7f39792133003b9bc058cb (patch) | |
tree | eb07184ac0377385df6da479adfd5df8cb6ed6ad /ui | |
parent | fd3e240dd934c0938a57344a6ae09a213aaa8e37 (diff) | |
download | tangerine-wallet-browser-a69480d78d3a97310c7f39792133003b9bc058cb.tar tangerine-wallet-browser-a69480d78d3a97310c7f39792133003b9bc058cb.tar.gz tangerine-wallet-browser-a69480d78d3a97310c7f39792133003b9bc058cb.tar.bz2 tangerine-wallet-browser-a69480d78d3a97310c7f39792133003b9bc058cb.tar.lz tangerine-wallet-browser-a69480d78d3a97310c7f39792133003b9bc058cb.tar.xz tangerine-wallet-browser-a69480d78d3a97310c7f39792133003b9bc058cb.tar.zst tangerine-wallet-browser-a69480d78d3a97310c7f39792133003b9bc058cb.zip |
Gas inputs can be changed by up and down arrows (#3598)
* Up and down arrows can control gas inputs.
* input-number.js just uses number type.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/components/currency-input.js | 2 | ||||
-rw-r--r-- | ui/app/components/input-number.js | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/ui/app/components/currency-input.js b/ui/app/components/currency-input.js index 940238fa5..ece3eb43d 100644 --- a/ui/app/components/currency-input.js +++ b/ui/app/components/currency-input.js @@ -91,6 +91,7 @@ CurrencyInput.prototype.render = function () { placeholder, readOnly, inputRef, + type, } = this.props const { emptyState, focused } = this.state @@ -99,6 +100,7 @@ CurrencyInput.prototype.render = function () { const valueToRender = this.getValueToRender() return h('input', { className, + type, value: emptyState ? '' : valueToRender, placeholder: focused ? '' : placeholder, size: valueToRender.length * inputSizeMultiplier, diff --git a/ui/app/components/input-number.js b/ui/app/components/input-number.js index fd8c5c309..5600e35ee 100644 --- a/ui/app/components/input-number.js +++ b/ui/app/components/input-number.js @@ -55,6 +55,7 @@ InputNumber.prototype.render = function () { className: 'customize-gas-input', value, placeholder, + type: 'number', onInputChange: newValue => { this.setValue(newValue) }, |