You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Im having a problem while using last React version + react-modal-resizable-draggable.
It works as expected but it throws an error in console.
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: