-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
modal dialog freezes the whole page #276
Comments
Do you have custom z-indexes in your dialog, what are the ancestors of p-dialog? Do they have z-index? |
actually not, I don't have any z-index |
Is it possible to send us the whole page code? |
yes, but the whole application in quite big and the routing is complex.
and this is the ts:
newPersonnel.ts component is inserted in the in this page (staffPage.html):
its ts is:
|
I've used this component in two part of the program, one works, the second doesn't (which is the same listed above). probably it doesn't work beacuse the componet with the dialog is called with
Is there an "appendTo" function, to append this component directly to the body ? |
Any solutions on this? Same probelm using a router outlet |
Please see; |
<p-dialog appendTo="body" should fix this. |
That did the trick! Amazing! |
Looks like the initial positioning is not in the center of the body though. Its positioned to the center only after resizing. |
More on that: The initial position SEEMS to be the center of the elements parent, not the element it was attached to. responsive must be true to get the correct position when resizing. |
I'm sorry, the problem seems to be the fact, that there is an ngIf on the dialogs content div as proposed in the data-table CRUD demo. So it has nothing to do with appendTo. That works great! |
Thank you cagataycivici ! This worked for me. |
Tks Mate for the solution.. |
Thank you cagataycivici ! This also worked for me.! More power to prime! |
In my case somehow <p:dialog appendTo="body" game me an error,so i used appendToBody="true" or appendTo="@(body)" and they worked for me. :-D |
Change incident list CSV export to use backend only
Hello,
adding a modal dialog and setting it visible, the whole page, including the dialog is frezzed.
I've found this forum on primefaces, but I cannot append the dialog directly to the body.
any idea?
thank you
The text was updated successfully, but these errors were encountered: