Skip to content
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

data is not updated which is passed to createDroppable #120

Open
Swappea opened this issue Nov 3, 2024 · 0 comments
Open

data is not updated which is passed to createDroppable #120

Swappea opened this issue Nov 3, 2024 · 0 comments

Comments

@Swappea
Copy link

Swappea commented Nov 3, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant