-
Notifications
You must be signed in to change notification settings - Fork 218
Open
Description
Describe the bug
When you are dragging an item, if the list prop is updated such that it should remove the element you are dragging we have seen multiple bugs:
- The element dragging should be removed, but it consistently wasn't
- Multiple JavaScript errors were frequently thrown
To Reproduce
Steps to reproduce the behavior:
- Have a list of sortable elements in the
<ReactSortableJS />component - Start dragging an element
- While you're dragging, have an event trigger updating the
listprop so that the element you are dragging should be removed
Expected behavior
The element you are dragging should be removed with no errors thrown and the state of things continuing to work properly
Information
This is required. Issues without this critical information will be closed.
Versions - Look in your package.json for this information:
react-sortablejs = 6.0.0 (also had seen this same behavior with an earlier version)
react = 16.9.0
Additional context
Hoping to set up a codesandbox example at some point, just wanted to start the conversation here first
dawnlunacy, dwijesingheCTL, cosadmin, balaakagordon, Mathster0598 and 1 moredwijesingheCTL, sbuckingham89, cosadmin, dawnlunacy and Mathster0598
Metadata
Metadata
Assignees
Labels
No labels