Fix dropdown toggle behavior - settings

feature/default_network_editable
sdtsui 7 years ago
parent 24d375aaf1
commit 34834c108d
  1. 6
      ui/app/app.js

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

Loading…
Cancel
Save