johnny / johnny/jquery-sortable

nested html structure, not nested .sortable()

Open
#147 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
1.5k
Forks
429
PR merge metrics
No merged PRs in 30d

Description

I have a structure similar to:

```








```

I want to sort the outer containers, and the sub containers independently.

The outer container sorts just fine. the OLs do not. When I drag, the inspector tags them as "sortable-dragging", but they don't move, reorder, or untag when releasing them.

My code is like so:

```
$('.members-list').sortable({
handle: '.member-handle',
containerSelector: 'ol',
# nested: false
});

$('#companies-list').sortable({
handle: '.company-handle',
# nested: false,
containerSelector: 'ul'
});
```

And my full html, if interested, is here:
https://gist.github.com/BeamerCola/39df256ddbcffa96b764

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.