-
Notifications
You must be signed in to change notification settings - Fork 82
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
Sheet not opening in StrictMode
#185
Comments
Hi @Chrishuwei 👋🏻 This sounds like it could be a React StrictMode related issue. For some reason the Unfortunately I haven't been able to figure out a workaround yet. Currently the easiest fix is to just turn off/remove React |
StrictMode
I updated the title to reflect the real root cause of the problem. I'll keep this issue open so that other devs that encounter the same issue can see it and maybe someone has an idea how to mitigate the problem. I currently don't have much time to investigate this problem. |
Are you using React 18 or 19? |
I'm using React 19. As part of the v4 refactoring of |
I am trying this module in my page. However, I cannot see the sheet in view because we set transform value is css. Also, we do not have this behavior in the release environment (I deployed my website through GCP).
One more interesting thing is if I zoom in and out by cmd +/-, then I can see the sheet rendering in view when I am in development mode.
Is this a known issue of this module? Or is there any workaround to prevent this issue? Thank you.
CODE:
'use client';
import { Sheet } from 'react-modal-sheet';
import { useState } from 'react';
export default function Container() {
}
The text was updated successfully, but these errors were encountered: