Skip to content

Commit

Permalink
Merge pull request #16542 from volvachev/fix-sidebar-hide-event
Browse files Browse the repository at this point in the history
fix(primeng/p-sidebar): `onHide` event not send after close manually
  • Loading branch information
mehmetcetin01140 authored Nov 12, 2024
2 parents bc1f169 + 838b8d7 commit 231d0f3
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 231d0f3

Please sign in to comment.