-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sidebar.ngOnDestroy: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node' #10381
Comments
Additional information: Just a little more on the design. I have sidebar component, and that's used in other components for layout and menu generation. As I navigate my main menu, a child sidebar is generated based on the some-view-component.html: <app-two-column-panel>
<app-left-panel>
<app-side-menu [menu]="menu"></app-side-menu>
</app-left-panel>
<app-content-panel>
<router-outlet></router-outlet>
</app-content-panel>
</app-two-column-panel> app-side-menu.html: <ng-container *ngTemplateOutlet="menuTemplate"></ng-container>
<p-sidebar appendTo="body" [(visible)]="display">
<ng-container *ngTemplateOutlet="menuTemplate"></ng-container>
</p-sidebar>
<ng-template #menuTemplate>
<ul class="side-menu-section side-nav show-for-large-up system-menu">
<ng-container *ngFor="let section of menu">
<li *ngIf="section.name" class="no-border side-menu-section-name">
<h3>{{section.name}}</h3>
</li>
<ng-container *ngFor="let item of section.children">
<li class="side-menu-section-item" *ngIf="!isItemHidden(item, false)" [routerLink]="getRouterLink(item)" [ngClass]="{active: isActive(item), disabled: isDisabled(item)}"
tooltipPosition="right" (click)="onItemClick($event, item);" [pTooltip]="item.description">
<a>
<span [ngClass]="item.icon"></span> {{item.name}}
</a>
</li>
</ng-container>
</ng-container>
</ul>
</ng-template> |
Fixed in #10247 |
where is the solution? I also have the same error and there is nothing about this error in the code of the project |
|
I'm submitting a ... (check one with "x")
Current behavior
Sidebar gets an error onDestroy:
Expected behavior
No error.
Minimal reproduction of the problem with instructions
Please tell us about your environment: npm: 6.14.11, Ubuntu: 20.10
node --version
= 14.15.1The text was updated successfully, but these errors were encountered: