Skip to content

Commit

Permalink
set toggle title
Browse files Browse the repository at this point in the history
  • Loading branch information
bsatarnejad committed Dec 3, 2024
1 parent 7de4100 commit eae6529
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/app/core/main-menu/main-menu-toggle.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class MainMenuToggleService {
}
}

public toggleNavigation(event?:JQuery.TriggeredEvent | Event):void {
public toggleNavigation(event?:JQuery.TriggeredEvent|Event):void {
if (event) {
event.stopPropagation();
event.preventDefault();
Expand Down Expand Up @@ -167,6 +167,8 @@ export class MainMenuToggleService {

// Check if menu is open or closed and apply CSS class if needed
this.toggleClassHidden();
this.snapBack();
this.setToggleTitle();

// Save the width if it's open
if (this.elementWidth > 0) {
Expand Down

0 comments on commit eae6529

Please sign in to comment.