diff options
author | Dan <danjm.com@gmail.com> | 2017-09-20 20:32:18 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-09-27 00:05:29 +0800 |
commit | 7102772c3a4a73d594ccc20e760defa2999f2d3f (patch) | |
tree | 5514016e0b816cf60c7a2b108d635fdced84c4f6 /ui/app/components/readonly-input.js | |
parent | d1737777f0fcc78cf034c52aa1fb039f40eca4e2 (diff) | |
download | tangerine-wallet-browser-7102772c3a4a73d594ccc20e760defa2999f2d3f.tar.gz tangerine-wallet-browser-7102772c3a4a73d594ccc20e760defa2999f2d3f.tar.zst tangerine-wallet-browser-7102772c3a4a73d594ccc20e760defa2999f2d3f.zip |
Connect export key modal to state and enable actions.
Diffstat (limited to 'ui/app/components/readonly-input.js')
-rw-r--r-- | ui/app/components/readonly-input.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/app/components/readonly-input.js b/ui/app/components/readonly-input.js index 934cbefae..33b93b5a0 100644 --- a/ui/app/components/readonly-input.js +++ b/ui/app/components/readonly-input.js @@ -14,13 +14,17 @@ ReadOnlyInput.prototype.render = function () { wrapperClass = '', inputClass = '', value, + textarea, } = this.props + const inputType = textarea ? 'textarea' : 'input' + return h('div', {className: wrapperClass}, [ - h('input', { + h(inputType, { className: inputClass, value, readOnly: true, + onFocus: event => event.target.select(), }), ]) } |