aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/editable-label.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2017-08-08 01:51:18 +0800
committerGitHub <noreply@github.com>2017-08-08 01:51:18 +0800
commit57abc58d623b66a091987a944d8c45737f4feabe (patch)
tree546623f2e7f98dc745afe924e3937da722894820 /ui/app/components/editable-label.js
parent2ba5737728d2539fc3bc9015e440f37341219cdc (diff)
parent50fc9c965842f023180630267ecd8dc4f47e9cd6 (diff)
downloadtangerine-wallet-browser-57abc58d623b66a091987a944d8c45737f4feabe.tar.gz
tangerine-wallet-browser-57abc58d623b66a091987a944d8c45737f4feabe.tar.zst
tangerine-wallet-browser-57abc58d623b66a091987a944d8c45737f4feabe.zip
Merge pull request #1835 from MetaMask/NewUI
Begin UI Refactor with Responsiveness & New Menus
Diffstat (limited to 'ui/app/components/editable-label.js')
-rw-r--r--ui/app/components/editable-label.js7
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)
}