-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
0.9.4 Does not fully respect noBodyStyles & modal={false} #432
Comments
I'm unable to reproduce. Please provide a demo with reproduction. |
I'm experiencing the same issue, here's a forked example file that shows the issue: https://codesandbox.io/p/devbox/drawer-snap-points-forked-3v7jlr?workspaceId=c111e220-c0ec-479d-81c2-c45f851464bd
|
Perhaps related to radix' radix-ui/primitives#2122, seemingly fixed by bumping @radix-ui/react-dialog to 1.1.1 |
I might be missing something, but I'm able to interact with the background in the demo you provided and |
In @viktorrenkema demo i also found no problem regarding pointer-events on body, although i had a similar issue with Vaul, which was fixed by this hook from radix-ui/primitives#2122 useEffect(() => {
if (open) {
// Pushing the change to the end of the call stack
const timer = setTimeout(() => {
document.body.style.pointerEvents = '';
}, 0);
return () => clearTimeout(timer);
} else {
document.body.style.pointerEvents = 'auto';
}
}, [open]); my case uses custom Fab in document.body, but when the Drawer opens (no matter where it portals to - body or a custom container) the Fab stays on-top of the Drawer and won't receive any pointer-events. setting modal={false} helped with 0.9.1, but i needed the overlay to be active as well. |
Unfortunately still seeing this behavior on 0.9.6 with
|
Facing the same issue
I can approve this is still happening
|
Same. Updating recently, with the radix update, is causing pointer-events: none; on the body, even with modal false, dismissible false, and no body styles. |
Same issue here |
I've just released a new version, could you verify whether it works? |
Fixed for me! Thank you @emilkowalski! |
Me as well, thanks for your work on the library! |
Been following this also. It works now, thanks for your time and work! |
Worked for me - thanks, much appreciated! :) |
For future readers, you need to have the I was confused as to why the |
There is a chance it won't be needed ;) |
Lifesaver, thanks man. |
As soon as the drawer is opened in 0.9.4, the style
pointer-events: none
is added to the<body>
regardless of settingnoBodyStyles
and/ormodal={false}
.The text was updated successfully, but these errors were encountered: