-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
PrimeReactProvider: Panels closing on scroll even with hideOverlaysOnDocumentScrolling: false #5332
Comments
Issue was caused by this fix: #4819 |
Doesn't seem to be fixed, still occurring in 10.2.1 https://codesandbox.io/p/sandbox/primereact-forked-65n5gl |
I will take a look. It works for me in the showcase but let me boil and example down to just like yours there must be something different. |
OK in the showcase this is working fine. but I can see your example is not trying to figure out why. |
@MBR-0001 i found the difference. It is because its attaching to Window and not body. I added this CSS body {
margin: 0px;
min-height: 100%;
overflow-x: hidden;
overflow-y: auto;
background-color: var(--surface-ground);
font-weight: normal;
color: var(--text-color);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
} And now it works fine. |
Describe the bug
Setting
hideOverlaysOnDocumentScrolling: false
in PrimeReactProvider does not keep the overlays open when scrolling, check reproducerReproducer
https://codesandbox.io/s/primereact-forked-pdt7mn?file=/src/index.js:1025-1063
PrimeReact version
10.0.9
React version
18.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
Dropdown panel remains open
The text was updated successfully, but these errors were encountered: