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

on "updateTaskOrder" i get flat array #21

Open
ithuis opened this issue Mar 16, 2023 · 2 comments
Open

on "updateTaskOrder" i get flat array #21

ithuis opened this issue Mar 16, 2023 · 2 comments
Labels
needs more info More info is needed in order to help

Comments

@ithuis
Copy link

ithuis commented Mar 16, 2023

i have a tree structure with 8 root element, they al have children en so on.

ui works fine!

But when i drag and drop if get an array of 2000 root element, some have "items" . Shouln't it be the same 8 root elements?

@ithuis
Copy link
Author

ithuis commented Apr 5, 2023

is dont understand why you want the array as a result. I now use this as a response

` onSort: (e) => {

        var itemId        = e.item.id;
        var fromParentId  = e.from.id;
        var toParentId    = e.to.id;
        var oldIndex      = e.oldIndex;
        var newIndex      = e.newIndex;
    
        component.call(masterEl.getAttribute('wire:sortable-group'),itemId, oldIndex, newIndex, fromParentId, toParentId);
    },`

@gdebrauwer
Copy link
Contributor

gdebrauwer commented Oct 19, 2023

Do you mean you have more than 2 levels deep of sortable lists? Because that is indeed not supported at the moment.

@gdebrauwer gdebrauwer added the needs more info More info is needed in order to help label Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info More info is needed in order to help
Projects
None yet
Development

No branches or pull requests

2 participants