Skip to content

Commit

Permalink
Fixed #14254 - Sidebar | When trying to close the sidebar, the sideba…
Browse files Browse the repository at this point in the history
…r-mask disappears but the component stays open
  • Loading branch information
mehmetcetin01140 committed Dec 27, 2023
1 parent a99d8d6 commit 3deb85d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/components/sidebar/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ export class Sidebar implements AfterViewInit, AfterContentInit, OnDestroy {
}

close(event: Event) {
this.hide(false);
this.hide();
this.visibleChange.emit(false);
event.preventDefault();
}
Expand Down Expand Up @@ -386,8 +386,6 @@ export class Sidebar implements AfterViewInit, AfterContentInit, OnDestroy {
onAnimationEnd(event: any) {
switch (event.toState) {
case 'void':
this.hide();

ZIndexUtils.clear(this.container);
this.unbindGlobalListeners();
break;
Expand Down

0 comments on commit 3deb85d

Please sign in to comment.