Skip to content

data is not updated which is passed to createDroppable #120

Description

@Swappea

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions