diff --git a/ui/app/app.js b/ui/app/app.js index b251baefd..f293e89bd 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -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',