|
|
@ -308,7 +308,11 @@ App.prototype.renderDropdown = function () { |
|
|
|
isOpen: isOpen, |
|
|
|
isOpen: isOpen, |
|
|
|
zIndex: 11, |
|
|
|
zIndex: 11, |
|
|
|
onClickOutside: (event) => { |
|
|
|
onClickOutside: (event) => { |
|
|
|
this.setState({ isMainMenuOpen: !isOpen }) |
|
|
|
const { classList } = event.target |
|
|
|
|
|
|
|
const isNotToggleElement = !classList.contains('sandwich-expando') |
|
|
|
|
|
|
|
if (isNotToggleElement) { |
|
|
|
|
|
|
|
this.setState({ isMainMenuOpen: false }) |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
style: { |
|
|
|
style: { |
|
|
|
position: 'absolute', |
|
|
|
position: 'absolute', |
|
|
|