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()) {