You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When opening a p-dialog and performing an action like "Save," the dialog closes as expected. However, the page becomes unscrollable due to the presence of the p-overflow-hidden class on the <body> tag.
Steps to Reproduce
Open a page with a PrimeNG p-dialog component.
Trigger an action inside the dialog, such as "Save."
Observe that the dialog closes.
Try scrolling the page—scrolling is disabled.
Expected Behavior
After the dialog closes, the p-overflow-hidden class should be removed from the <body> tag, allowing the user to scroll the page.
Additional Context
PrimeNG Version: [^17.10.0]
Angular Version: [~17.0.0]
Node.js Version: [v20.17.0]
Screenshots
Workaround
Temporary Solutions:
CSS Override:
Add the following CSS to restore the scrolling functionality:
QA will review. We have a scroll bar issue that was fixed this Sprint 52 we are currently working and will be resolved this sprint. The CSS issues @MitchellTCG can you please review comments on these. Thanks
@Yassinmoh thank you so much for your contribution! We really appreciate your input. Our team has started looking at this, however we have been unable to reproduce the issue. Do you mind clarifying where you saw this issue?
Bug Report
Where was the issue found:
Environment: Production
Browser: Chrome, Firefox
Describe the Issue
When opening a
p-dialog
and performing an action like "Save," the dialog closes as expected. However, the page becomes unscrollable due to the presence of the p-overflow-hidden class on the<body>
tag.Steps to Reproduce
Open a page with a PrimeNG p-dialog component.
Trigger an action inside the dialog, such as "Save."
Observe that the dialog closes.
Try scrolling the page—scrolling is disabled.
Expected Behavior
After the dialog closes, the p-overflow-hidden class should be removed from the
<body>
tag, allowing the user to scroll the page.Additional Context
PrimeNG Version: [^17.10.0]
Angular Version: [~17.0.0]
Node.js Version: [v20.17.0]
Screenshots
Workaround
Temporary Solutions:
Add the following CSS to restore the scrolling functionality:
Use Angular's Renderer2 service to remove the p-overflow-hidden class from the tag:
These workarounds temporarily resolve the issue until an official fix is provided.
The text was updated successfully, but these errors were encountered: