diff --git a/src/components/app-link/AppLinkElement.ts b/src/components/app-link/AppLinkElement.ts index 47e305d..ef529df 100644 --- a/src/components/app-link/AppLinkElement.ts +++ b/src/components/app-link/AppLinkElement.ts @@ -10,6 +10,7 @@ class AppLinkElement extends BaseComponentElement { @attr to: string; @attr goBack: string; @attr title: string; + @attr customAction: string; @target main: Element; constructor() { super(); @@ -61,7 +62,7 @@ class AppLinkElement extends BaseComponentElement { : html`${this.title} { + if (window.innerWidth < deviceWidths.mobile) { + (this.appMain?.mainRoot?.rootElement as MenuLayoutElement)?.retractMenu?.(); + } + }; + render = (): TemplateResult => { return html`