Skip to content

Commit

Permalink
Fixed #10247 - Sidebar - ngOnDestory throws an exception
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitfindikli committed May 18, 2021
1 parent 2c63781 commit 529bc7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/sidebar/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export class Sidebar implements AfterViewInit, AfterContentInit, OnDestroy {
this.hide();
}

if (this.appendTo) {
if (this.appendTo && this.container) {
this.el.nativeElement.appendChild(this.container);
}

Expand Down

1 comment on commit 529bc7a

@jemisha-25
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is not in my project, still giving me this error, Can you provide me a solution?

Please sign in to comment.