Skip to content

Commit

Permalink
Revert pr-13959
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetcetin01140 committed Nov 21, 2023
1 parent 7235d61 commit 3e37533
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/app/components/sidebar/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
Output,
QueryList,
Renderer2,
SimpleChanges,
TemplateRef,
ViewEncapsulation
} from '@angular/core';
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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()) {
Expand Down

0 comments on commit 3e37533

Please sign in to comment.