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 Dialog's prop "modal" is set to "true", it does not always prevent the underlying DOM node from being scrolled.
I have not been able to figure out why in our app it's sometimes respected and other times is not. The code sandbox here is forked from the https://primereact.org/dialog/ example. It sets modal={true} and adds enough content to both the dialog and the document body to make them scroll.
melloware
added
Type: Bug
Issue contains a defect related to a specific component.
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
May 2, 2023
Describe the bug
When Dialog's prop "modal" is set to "true", it does not always prevent the underlying DOM node from being scrolled.
I have not been able to figure out why in our app it's sometimes respected and other times is not. The code sandbox here is forked from the https://primereact.org/dialog/ example. It sets modal={true} and adds enough content to both the dialog and the document body to make them scroll.
Reproducer
https://codesandbox.io/s/primereact-demo-forked-s6r5y5?file=/src/App.js
PrimeReact version
9.3.1
React version
17.x
Language
ES6
Build / Runtime
Vite
Browser(s)
Chrome 112
Steps to reproduce the behavior
Expected behavior
Scrolling on the body should be prevented for as long as the dialog is open.
The text was updated successfully, but these errors were encountered: