primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
10.4k stars 4.59k forks source link

Nested p-dialog do not move correcly #12414

Open maxime-gr opened 1 year ago

maxime-gr commented 1 year ago

Describe the bug

When nesting a p-dialog inside another p-dialog, the p-dialog cannot be dragged correctly.

Environment

See stackblitz.

Reproducer

https://stackblitz.com/edit/angular-ivy-aeokxn?file=src/app/app.component.html

Angular version

15.0.4

PrimeNG version

15.0.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

8.5.4

Browser(s)

No response

Steps to reproduce the behavior

Move the p-dialog nested into the other p-dialog, the p-dialog move at the bottom left of the viewport.

Expected behavior

It should have the same behavior as when the p-dialog is not nested.

cetincakiroglu commented 1 year ago

Hi @maxime-gr,

Could you please update the Stackblitz example, it seems broken.

maxime-gr commented 1 year ago

Hi @cetincakiroglu,

I probably forgot to save it at some point... I updated my original comment.

deepakoraon19 commented 10 months ago

A workaround would be appending the dialogs into the body, try adding [ appendTo = "body" ] to the dialog, works for me.

mylifeandcode commented 2 months ago

Having this issue as well in v17.4.0, and appendTo="body" does not correct it.