Skip to content

Commit 5c6df8f

Browse files
mlopezFCjavier-godoy
authored andcommitted
fix: rebuild the menu after clicking
1 parent 3569192 commit 5c6df8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/resources/META-INF/resources/frontend/fc-applayout/fc-fusion-layout.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export class FusionLayout extends LitElement {
171171
}
172172

173173
private buildMenu(){
174-
this.updateMenuItems();
174+
window.requestAnimationFrame(() => this.updateMenuItems());
175175
}
176176

177177
private async updateMenuItems(){
@@ -210,6 +210,7 @@ export class FusionLayout extends LitElement {
210210
class=${this.currentLocationClass(""+item.href)}
211211
href="${routerLink}"
212212
label="${item.label}"
213+
@click=${this.buildMenu}
213214
>
214215
</fc-menuitem>
215216
`;

0 commit comments

Comments
 (0)