aboutsummaryrefslogtreecommitdiffstats
path: root/old-ui
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-03-01 00:42:06 +0800
committerDan <danjm.com@gmail.com>2018-03-01 00:48:37 +0800
commit78f6a4866425ca9fd7795d91ea5dacd47599c1ab (patch)
treef3229c751c583cc7856952a9937676141b092ff7 /old-ui
parent33373b676f4d6ddfa95caa18683cef0be4b6327a (diff)
downloadtangerine-wallet-browser-78f6a4866425ca9fd7795d91ea5dacd47599c1ab.tar.gz
tangerine-wallet-browser-78f6a4866425ca9fd7795d91ea5dacd47599c1ab.tar.zst
tangerine-wallet-browser-78f6a4866425ca9fd7795d91ea5dacd47599c1ab.zip
Define event locally in onClickOutside method in account-dropdowns.js
Diffstat (limited to 'old-ui')
-rw-r--r--old-ui/app/components/account-dropdowns.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/old-ui/app/components/account-dropdowns.js b/old-ui/app/components/account-dropdowns.js
index aa7a3ad67..7a2357921 100644
--- a/old-ui/app/components/account-dropdowns.js
+++ b/old-ui/app/components/account-dropdowns.js
@@ -173,7 +173,7 @@ class AccountDropdowns extends Component {
minWidth: '180px',
},
isOpen: optionsMenuActive,
- onClickOutside: () => {
+ onClickOutside: (event) => {
const { classList } = event.target
const isNotToggleElement = !classList.contains(this.optionsMenuToggleClassName)
if (optionsMenuActive && isNotToggleElement) {