mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix dropdown toggle behavior - settings
This commit is contained in:
parent
24d375aaf1
commit
34834c108d
@ -308,7 +308,11 @@ App.prototype.renderDropdown = function () {
|
||||
isOpen: isOpen,
|
||||
zIndex: 11,
|
||||
onClickOutside: (event) => {
|
||||
this.setState({ isMainMenuOpen: !isOpen })
|
||||
const { classList } = event.target
|
||||
const isNotToggleElement = !classList.contains('sandwich-expando')
|
||||
if (isNotToggleElement) {
|
||||
this.setState({ isMainMenuOpen: false })
|
||||
}
|
||||
},
|
||||
style: {
|
||||
position: 'absolute',
|
||||
|
Loading…
Reference in New Issue
Block a user