diff --git a/website/client/src/components/header/menu.vue b/website/client/src/components/header/menu.vue index 6d311bdd69..82725160a5 100644 --- a/website/client/src/components/header/menu.vue +++ b/website/client/src/components/header/menu.vue @@ -834,13 +834,11 @@ export default { }, closeMenu () { + Array.from(document.getElementsByClassName('droppable')).forEach(droppableElement => { + this.closeDropdown(droppableElement); + }); if (this.isMobile()) { this.menuIsOpen = false; - - Array.from(document.getElementsByClassName('droppable')).forEach(droppableElement => { - droppableElement.classList.remove('down'); - droppableElement.lastChild.style.maxHeight = 0; - }); } }, isMobile () {