aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/currency-input.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-11-11 02:47:02 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-11-11 06:13:29 +0800
commita33ced39946c1448b56aef22ab3573b00d1faeca (patch)
tree25518aff5483c8076d99dca9b3d53ef742b223ef /ui/app/components/currency-input.js
parent5a0126f17b3513fa7fa1513f2c52abff19535ac0 (diff)
downloadtangerine-wallet-browser-a33ced39946c1448b56aef22ab3573b00d1faeca.tar
tangerine-wallet-browser-a33ced39946c1448b56aef22ab3573b00d1faeca.tar.gz
tangerine-wallet-browser-a33ced39946c1448b56aef22ab3573b00d1faeca.tar.bz2
tangerine-wallet-browser-a33ced39946c1448b56aef22ab3573b00d1faeca.tar.lz
tangerine-wallet-browser-a33ced39946c1448b56aef22ab3573b00d1faeca.tar.xz
tangerine-wallet-browser-a33ced39946c1448b56aef22ab3573b00d1faeca.tar.zst
tangerine-wallet-browser-a33ced39946c1448b56aef22ab3573b00d1faeca.zip
Focus amount input when click anywhere in amount field container
Diffstat (limited to 'ui/app/components/currency-input.js')
-rw-r--r--ui/app/components/currency-input.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/app/components/currency-input.js b/ui/app/components/currency-input.js
index f192ee531..016f14d3e 100644
--- a/ui/app/components/currency-input.js
+++ b/ui/app/components/currency-input.js
@@ -76,6 +76,7 @@ CurrencyInput.prototype.render = function () {
className,
placeholder,
readOnly,
+ inputRef,
} = this.props
const inputSizeMultiplier = readOnly ? 1 : 1.2
@@ -89,5 +90,6 @@ CurrencyInput.prototype.render = function () {
size: valueToRender.length * inputSizeMultiplier,
readOnly,
onChange: e => this.handleChange(e.target.value),
+ ref: inputRef,
})
}