mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Define event locally in onClickOutside method in account-dropdowns.js
This commit is contained in:
parent
33373b676f
commit
78f6a48664
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user