Skip to content

Commit

Permalink
fix(primeng/p-sidebar): onHide event not send after close manually
Browse files Browse the repository at this point in the history
  • Loading branch information
volvachev committed Oct 14, 2024
1 parent bc6952c commit 838b8d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/components/sidebar/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ export class Sidebar implements AfterViewInit, AfterContentInit, OnDestroy {
}

close(event: Event) {
this.hide();
this.hide(false);
this.visibleChange.emit(false);
event.preventDefault();
}
Expand Down Expand Up @@ -397,7 +397,7 @@ export class Sidebar implements AfterViewInit, AfterContentInit, OnDestroy {
onAnimationEnd(event: any) {
switch (event.toState) {
case 'void':
this.hide(false);
this.hide(true);
ZIndexUtils.clear(this.container);
this.unbindGlobalListeners();
break;
Expand Down

0 comments on commit 838b8d7

Please sign in to comment.