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

Nested sortable lists end event problem #8

Open
ev-bordiuk opened this issue Sep 14, 2021 · 2 comments
Open

Nested sortable lists end event problem #8

ev-bordiuk opened this issue Sep 14, 2021 · 2 comments

Comments

@ev-bordiuk
Copy link

There is a problem with first level of sort list if it has a nested sortable list.
Event end doesn't fire for top level.
But if I use plain Sortable library for this, everything works fine.

@ducho
Copy link

ducho commented Oct 11, 2021

@ev-bordiuk How your controller and template container looks for nested sortable? Because I have problem with configuration. Thanks!

@ev-bordiuk
Copy link
Author

ev-bordiuk commented Oct 12, 2021

I can't share code for now, because I had to change it.
But it was just like this:

<div data-controller="sortable" data-sortable-handle-value=".handler">
<div>
<h2>Parent 1</h2>
<div data-controller="sortable" data-sortable-handle-value=".handler">
<div>Child 1-1</div>
<div>Child 1-2</div>
<div>Child 1-3</div>
</div>
</div>
<div>
<h2>Parent 2</h2>
<div data-controller="sortable" data-sortable-handle-value=".handler">
<div>Child 2-1</div>
<div>Child 2-2</div>
<div>Child 2-3</div>
</div>
</div>
<div>Parent 3</div>
</div>
When I used plain Sortable library to init lists, that was working correctly.

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

2 participants