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

sortable transform is null in nested arrays. #1410

Open
ofirgo1 opened this issue May 22, 2024 · 0 comments
Open

sortable transform is null in nested arrays. #1410

ofirgo1 opened this issue May 22, 2024 · 0 comments

Comments

@ofirgo1
Copy link

ofirgo1 commented May 22, 2024

I have an array that in each item there is an object.
Inside the object there is another array.
I use the useSortable hook on the inner arrays, the logic works, but the transform always returns null, so there is no animation.
Is there an option to resolve this issue?

rows: [
{id:1 , subRows: [id: 1, id: 2, id: 3]}
{id:2 , subRows: [id: 4, id: 5, id: 6]}
{id:3 , subRows: [id: 7, id: 8, id: 9]}
]

the sortable on the rows array works good and with the transform.
the sortable on any of the subRows arrays works good in the logic but without the transform.

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