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

Maintain nesting level. Prevent item being dropped in parent but allow another container of same level #132

Open
LrntL opened this issue Aug 7, 2019 · 0 comments

Comments

@LrntL
Copy link

LrntL commented Aug 7, 2019

Hi !

I use connected list.
I use two times nestedSortable :

  • The 1st to manage category and subcategory on 2 levels (not connected)
  • The 2nd to manage item (in these categories/subcategories), connected with css class on 1 level.

What I want is to drag item from a category/subcategory to another without be able to drop it in the root of the categories.

Dropping item in another category/subcategory is working but I can't prevent dropping in root of the categories.

Do you know how to do that ?

For you interest, take a look at this fork (in development) : https://github.com/CanopyApps/nestedSortable/tree/develop

It has "maintainNestingLevel" option when set to true does what I need.
I do not know how to apply that in this plugin.

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