johnny / jquery-sortable

A flexible, opinionated sorting plugin for jQuery
http://johnny.github.io/jquery-sortable/
Other
1.52k stars 441 forks source link

How can I prevent items from being inserted into the top level hierarchy? #236

Open W3Extensions opened 7 years ago

W3Extensions commented 7 years ago

I have a list that's three levels deep. I don't want anything dragged into the top level, but everything else can be rearranged within or between nested lists. How can I get that to work?

ChristopherSchaefer commented 7 years ago

Have you found a solution? I gone need this too...

W3Extensions commented 7 years ago

I haven't found one yet.

ioliver commented 7 years ago

I use isValidTarget method for that. Check whether container has some specific class name for top level list.