RESPONSIVE FIX Close subemnus when closing mobile menu
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d9b3121d53
commit
e4f43b75eb
|
|
@ -65,7 +65,7 @@ class HeaderMenu {
|
||||||
|
|
||||||
closeMenu() {
|
closeMenu() {
|
||||||
if (!this.header || !this.mobileMenuToggle || !this.isMenuOpen()) return;
|
if (!this.header || !this.mobileMenuToggle || !this.isMenuOpen()) return;
|
||||||
|
this.closeAllSubmenus();
|
||||||
this.header.classList.remove('nav-open');
|
this.header.classList.remove('nav-open');
|
||||||
this.mobileMenuToggle.removeAttribute('aria-expanded');
|
this.mobileMenuToggle.removeAttribute('aria-expanded');
|
||||||
this.mobileMenuToggle.textContent = 'Menu';
|
this.mobileMenuToggle.textContent = 'Menu';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user