aboutsummaryrefslogtreecommitdiffstats
path: root/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 /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 'ui')
-rw-r--r--ui/app/components/account-dropdowns.js2
-rw-r--r--ui/app/components/dropdowns/components/account-dropdowns.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/components/account-dropdowns.js b/ui/app/components/account-dropdowns.js
index f69a6ca68..1cd7a0847 100644
--- a/ui/app/components/account-dropdowns.js
+++ b/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) {
diff --git a/ui/app/components/dropdowns/components/account-dropdowns.js b/ui/app/components/dropdowns/components/account-dropdowns.js
index d3a549884..fa9ffc632 100644
--- a/ui/app/components/dropdowns/components/account-dropdowns.js
+++ b/ui/app/components/dropdowns/components/account-dropdowns.js
@@ -281,7 +281,7 @@ class AccountDropdowns extends Component {
dropdownWrapperStyle,
),
isOpen: optionsMenuActive,
- onClickOutside: () => {
+ onClickOutside: (event) => {
const { classList } = event.target
const isNotToggleElement = !classList.contains(this.optionsMenuToggleClassName)
if (optionsMenuActive && isNotToggleElement) {