Skip to content

Commit

Permalink
Fix: Menu(16795): appendChild param order reversed
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonVerberSagent committed Nov 20, 2024
1 parent 6d18e1e commit 32d0e0a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/primeng/src/drawer/drawer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ export class Drawer extends BaseComponent implements AfterViewInit, OnDestroy {
appendContainer() {
if (this.appendTo) {
if (this.appendTo === 'body') this.renderer.appendChild(this.document.body, this.container);
else appendChild(this.container, this.appendTo);
else appendChild(this.appendTo, this.container);
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/primeng/src/menu/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ export class Menu extends BaseComponent implements OnDestroy {
appendOverlay() {
if (this.appendTo) {
if (this.appendTo === 'body') this.renderer.appendChild(this.document.body, this.container);
else appendChild(this.container, this.appendTo);
else appendChild(this.appendTo, this.container);
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/primeng/src/overlaypanel/overlaypanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export class OverlayPanel extends BaseComponent implements AfterContentInit, OnD
appendContainer() {
if (this.appendTo) {
if (this.appendTo === 'body') this.renderer.appendChild(this.document.body, this.container);
else appendChild(this.container, this.appendTo);
else appendChild(this.appendTo, this.container);
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/primeng/src/popover/popover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export class Popover extends BaseComponent implements OnDestroy {
appendContainer() {
if (this.appendTo) {
if (this.appendTo === 'body') this.renderer.appendChild(this.document.body, this.container);
else appendChild(this.container, this.appendTo);
else appendChild(this.appendTo, this.container);
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/primeng/src/sidebar/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ export class Sidebar extends BaseComponent implements AfterViewInit, AfterConten

appendContainer() {
if (this.appendTo) {
return this.appendTo === 'body' ? this.renderer.appendChild(this.document.body, this.container) : appendChild(this.container, this.appendTo);
return this.appendTo === 'body' ? this.renderer.appendChild(this.document.body, this.container) : appendChild(this.appendTo, this.container);
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/primeng/src/tieredmenu/tieredmenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ export class TieredMenu extends BaseComponent implements OnInit, OnDestroy {
appendOverlay() {
if (this.appendTo) {
if (this.appendTo === 'body') this.renderer.appendChild(this.document.body, this.container);
else appendChild(this.container, this.appendTo);
else appendChild(this.appendTo, this.container);
}
}

Expand Down

0 comments on commit 32d0e0a

Please sign in to comment.