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
So I am using a custom implementation of using both createDraggable and createDroppable and the refs are combined. I have a nested JSON data which is looped over and according the groups and list is created.
Each of these list items are linked to a path which corresponds to index position within array from root.
So something like, path = [1, 2] => so this means the position of this element is at array position of 1 in root, then within that first position, it's within 2nd index.
So now when I handling dragOver for this, within event I get this data. First time it's correct, but in subsequent times I need the updated path that has happened due to re-ordering of elements within array.
Is there way to update the data dynamically for createDroppable?
The text was updated successfully, but these errors were encountered:
So I am using a custom implementation of using both createDraggable and createDroppable and the refs are combined. I have a nested JSON data which is looped over and according the groups and list is created.
Each of these list items are linked to a path which corresponds to index position within array from root.
So something like, path = [1, 2] => so this means the position of this element is at array position of 1 in root, then within that first position, it's within 2nd index.
So now when I handling dragOver for this, within event I get this data. First time it's correct, but in subsequent times I need the updated path that has happened due to re-ordering of elements within array.
Is there way to update the data dynamically for createDroppable?
The text was updated successfully, but these errors were encountered: