diff --git a/assets/js/main.js b/assets/js/main.js index 548d1dd9..1aa56caf 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -25,7 +25,11 @@ function navSectionsToggle() { function navSectionsClose(event) { // Hide all dropdowns when clicking in different place - if (event.target.matches(".nav-summary")) return; + if ( + event.target.matches(".nav-summary") || + event.target.parentNode.matches(".nav-summary") + ) + return; navSections.forEach(navSection => { navSection.open = !open; });