diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-07-25 08:04:13 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-07-25 08:05:07 +0800 |
commit | a22adec66fd0c541eb350ea424a6b00d179eedaf (patch) | |
tree | 684b5ffca43944b0aaf33a99dbb6edcdc04e620e /ui/app/components/editable-label.js | |
parent | fcde52f39070160623be5a03455d9d5c84a99f36 (diff) | |
download | tangerine-wallet-browser-a22adec66fd0c541eb350ea424a6b00d179eedaf.tar.gz tangerine-wallet-browser-a22adec66fd0c541eb350ea424a6b00d179eedaf.tar.zst tangerine-wallet-browser-a22adec66fd0c541eb350ea424a6b00d179eedaf.zip |
Replace ui with responsive-ui
Diffstat (limited to 'ui/app/components/editable-label.js')
-rw-r--r-- | ui/app/components/editable-label.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/app/components/editable-label.js b/ui/app/components/editable-label.js index 41936f5e0..167be7eaf 100644 --- a/ui/app/components/editable-label.js +++ b/ui/app/components/editable-label.js @@ -30,7 +30,12 @@ EditableLabel.prototype.render = function () { } else { return h('div.name-label', { onClick: (event) => { - this.setState({ isEditingLabel: true }) + const nameAttribute = event.target.getAttribute('name') + // checks for class to handle smaller CTA above the account name + const classAttribute = event.target.getAttribute('class') + if (nameAttribute === 'edit' || classAttribute === 'edit-text') { + this.setState({ isEditingLabel: true }) + } }, }, this.props.children) } |