From 3e37533a371134e1574013bab26433def4ada0a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Tue, 21 Nov 2023 15:26:51 +0300 Subject: [PATCH] Revert pr-13959 --- src/app/components/sidebar/sidebar.ts | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/app/components/sidebar/sidebar.ts b/src/app/components/sidebar/sidebar.ts index 86eb3f94211..50e5bcbfd4e 100755 --- a/src/app/components/sidebar/sidebar.ts +++ b/src/app/components/sidebar/sidebar.ts @@ -17,7 +17,6 @@ import { Output, QueryList, Renderer2, - SimpleChanges, TemplateRef, ViewEncapsulation } from '@angular/core'; @@ -97,7 +96,7 @@ const hideAnimation = animation([animate('{{transition}}', style({ transform: '{ class: 'p-element' } }) -export class Sidebar implements AfterViewInit, AfterContentInit, OnDestroy, OnChanges { +export class Sidebar implements AfterViewInit, AfterContentInit, OnDestroy { /** * Target element to attach the dialog, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name). * @group Props @@ -258,17 +257,6 @@ export class Sidebar implements AfterViewInit, AfterContentInit, OnDestroy, OnCh this.initialized = true; } - ngOnChanges(changes: SimpleChanges): void { - if(changes.visible){ - if(!changes.visible.firstChange){ - if(changes.visible.currentValue === false){ - this.hide(); - } - } - } - } - - ngAfterContentInit() { this.templates?.forEach((item) => { switch (item.getType()) {