-
Notifications
You must be signed in to change notification settings - Fork 210
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
Unhandled rejection Error: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node #55
Comments
Rendering errors in the react |
I also suffers from this error. The interesting part is that there is another bug making dragging item display other HTMLElement #1380 . So I guess there is must be a relation with this bug. |
Could you please create a JSBin or provide access to a live program that produces this error? |
@cheton I saw this issue occurs in the last example of your demo when moving an item from the left list to the right list |
So far I cannot figure out a way to easily reproduce this issue, but sometimes this will happen when calling When the exception occurrs in However, the child node itself is actually on the right: I believe the way we manipulate the DOM may cause unexpexcted behaviour to React, but I'm not sure what actions will affect React's Virtual DOM in this case. |
@owen-m1 The So even remove the line of |
@cheton Yeah you're right.. I wasn't using the debugger. Could it be that when you are changing the state of the list on the left, react DOM sees it needs to remove the list item you dragged to the right, but when it tries to remove it, it cannot because Sortable has already moved it to the other list. |
any news? |
I've the same problem |
You can fix this by moving the DOM element back to its original position in your react-sortablejs/src/Sortable.jsx Lines 58 to 59 in 114a664
You might be able to get away with passing |
Currently, this can be reproduce by following steps
Below is an gif console logging the event handler from the sortable.js and reproduces of the this bug. |
Thank @ultralabed for fixing this issue. It's fixed in v1.5.1 and was published to npm. Please let us know whether you are still facing this issue. |
The text was updated successfully, but these errors were encountered: