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
The recommended solution for the React 19 findDOMNode removal is to provide a DOM element reference via nodeRef. This does not work due to how react-draggable is being built.
The check being done for provided nodeRefhere falls back to using ReactDOM.findDOMNode when nodeRef is an empty ref ({ current: null }), which is always the initial value for DOM refs.
The source code appears to be doing the correct thing and should not result in this behavior, but the compiled code changes the behavior:
The recommended solution for the React 19
findDOMNode
removal is to provide a DOM element reference vianodeRef
. This does not work due to howreact-draggable
is being built.The check being done for provided
nodeRef
here falls back to usingReactDOM.findDOMNode
whennodeRef
is an empty ref ({ current: null }
), which is always the initial value for DOM refs.The source code appears to be doing the correct thing and should not result in this behavior, but the compiled code changes the behavior:
I have some tests proving this here.
The text was updated successfully, but these errors were encountered: