Skip to content
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

findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Modal which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here #48

Open
davidmoreno92 opened this issue May 12, 2022 · 1 comment

Comments

@davidmoreno92
Copy link

davidmoreno92 commented May 12, 2022

Hi, first of all, thanks for this package.

Im having a problem while using last React version + react-modal-resizable-draggable.

It works as expected but it throws an error in console.
image

Environment
React 18.0.0
Vite 2.7.2
React-modal-resizable-draggable

Note: It can be fixed temporarily by updating to React 18 in the package [React 18 runs StrictMode just in development environment] but it must be fixed by changing findDOMNode to Ref.

@DanielOjeda25
Copy link

Hi, I'm using the this library , and I have the same issue, I'm using vite as project's creator, so can you teach me how you fix that problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants