aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2018-03-01 01:52:52 +0800
committerGitHub <noreply@github.com>2018-03-01 01:52:52 +0800
commit40484b1c1ff2b8828d6764c1ba7bcf20730c4a30 (patch)
treef3229c751c583cc7856952a9937676141b092ff7
parent33373b676f4d6ddfa95caa18683cef0be4b6327a (diff)
parent78f6a4866425ca9fd7795d91ea5dacd47599c1ab (diff)
downloadtangerine-wallet-browser-40484b1c1ff2b8828d6764c1ba7bcf20730c4a30.tar
tangerine-wallet-browser-40484b1c1ff2b8828d6764c1ba7bcf20730c4a30.tar.gz
tangerine-wallet-browser-40484b1c1ff2b8828d6764c1ba7bcf20730c4a30.tar.bz2
tangerine-wallet-browser-40484b1c1ff2b8828d6764c1ba7bcf20730c4a30.tar.lz
tangerine-wallet-browser-40484b1c1ff2b8828d6764c1ba7bcf20730c4a30.tar.xz
tangerine-wallet-browser-40484b1c1ff2b8828d6764c1ba7bcf20730c4a30.tar.zst
tangerine-wallet-browser-40484b1c1ff2b8828d6764c1ba7bcf20730c4a30.zip
Merge pull request #3346 from danjm/i3228-event-not-defined
[old-ui] Define event locally in onClickOutside method in account-dropdowns.js
-rw-r--r--old-ui/app/components/account-dropdowns.js2
-rw-r--r--ui/app/components/account-dropdowns.js2
-rw-r--r--ui/app/components/dropdowns/components/account-dropdowns.js2
3 files changed, 3 insertions, 3 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) {
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) {