Skip to content
Snippets Groups Projects
Commit 062d4eb6 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Don't toggle the responsive menu when using the desktop one

parent 0765fdf5
No related branches found
No related tags found
No related merge requests found
......@@ -306,7 +306,7 @@ export class AppShell extends ScopedElementsMixin(LitElement) {
const link = e.composedPath()[0];
const location = link.getAttribute('href');
this.router.updateFromPathname(location);
this.toggleMenu();
this.hideMenu();
}
onLanguageChanged(e) {
......@@ -383,6 +383,12 @@ export class AppShell extends ScopedElementsMixin(LitElement) {
}
}
hideMenu() {
const menu = this.shadowRoot.querySelector("ul.menu");
if (menu && !menu.classList.contains('hidden'))
this.toggleMenu();
}
static get styles() {
// language=css
return css`
......@@ -725,7 +731,7 @@ export class AppShell extends ScopedElementsMixin(LitElement) {
</h2>
<ul class="menu hidden">
${menuTemplates}
<li class="close" @click="${this.toggleMenu}"><vpu-icon name="close" style="color: red"></vpu-icon></li>
<li class="close" @click="${this.hideMenu}"><vpu-icon name="close" style="color: red"></vpu-icon></li>
</ul>
</aside>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment