sortable-dnd icon indicating copy to clipboard operation
sortable-dnd copied to clipboard

Nested sortable

Open bavrr opened this issue 1 year ago • 5 comments

I'm trying to use one Sortable inside other Sortable, but it doesn't work. Maybe u can write example for it, if i doing it wrong or fix it? https://stackblitz.com/edit/vitejs-vite-qb82am?file=main.js

My main task is next structure, where allowed sort child inside its sortable list without putting children in other Sortable lists:

 Sortable list main
      -- Child 1 
          -- Sortable list 1
              -- Sortable list 1 Child 1
              -- Sortable list 1 Child 2
      -- Child 2
          -- Sortable list 2
              -- Sortable list 2 Child 1
              -- Sortable list 2 Child 2
      -- Child 3 

bavrr avatar Apr 03 '24 11:04 bavrr

@bavrr I will check it after the holiday

mfuu avatar Apr 04 '24 07:04 mfuu

@bavrr Please update to the latest version. And if you want to use nested with multi-instance, please add the same group to each instance. like:

new Sortable(el1, { group: 'nested' });
new Sortable(el2, { group: 'nested' });

mfuu avatar Apr 08 '24 12:04 mfuu

@mfuu u need manually update for https://github.com/mfuu/vue-virtual-drag-list or it will be automatically update as dependency?

bavrr avatar Apr 08 '24 12:04 bavrr

@bavrr The latest version is `0.6.9´. Please confirm if the version you have introduced is the same.

mfuu avatar Apr 08 '24 15:04 mfuu

Work, ty

bavrr avatar Apr 09 '24 08:04 bavrr