Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8feb2f7

Browse files
committedJun 18, 2018
fix: hide mobile sidebar issue #13
1 parent ab448c4 commit 8feb2f7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎projects/coreui/angular/src/lib/shared/layout/layout.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class MobileSidebarToggleDirective {
5151
@HostListener('click', ['$event'])
5252
toggleOpen($event: any) {
5353
$event.preventDefault();
54-
document.querySelector('body').classList.toggle('sidebar-mobile-show');
54+
document.querySelector('body').classList.toggle('sidebar-show');
5555
}
5656
}
5757

‎projects/coreui/angular/src/lib/sidebar/app-sidebar-nav.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ export class AppSidebarNavLinkComponent implements OnInit {
147147
}
148148

149149
public hideMobile() {
150-
if (document.body.classList.contains('sidebar-mobile-show')) {
151-
document.body.classList.toggle('sidebar-mobile-show');
150+
if (document.body.classList.contains('sidebar-show')) {
151+
document.body.classList.toggle('sidebar-show');
152152
}
153153
}
154154

0 commit comments

Comments
 (0)
Please sign in to comment.