1
0
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:
sdtsui 2017-07-28 15:40:26 -07:00
parent 24d375aaf1
commit 34834c108d

View File

@ -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',