-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
Body background not reset on drawer close #188
Comments
Yes! This issue needs to be resolved quickly! |
I'm facing the same issue, but it only occurs when I add the "vaul-drawer-wrapper" div.
The problem does not arise when I don't use the scale background feature; then the background color resets upon drawer close. However, I want to use this feature/effect. As a workaround, I've used:
This way, the background color remains the default instead of being replaced by black, as injected by the drawer. But still not an optimal solution. |
This works for me: <Drawer onClose={() => document.body.style.background = ''}>
{/* ... */}
</Drawer> |
solved it here: |
Fixed in #232. |
https://github.com/emilkowalski/vaul/blob/25e4999b0afd92b4b47d35a6a56cb16074610ce8/src/index.tsx#L394C1-L395C1
Using 0.8
Steps to reproduce
The text was updated successfully, but these errors were encountered: