You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At first I tought my error was similar to #23 but it's a bit different.
Basically, this happens when I try to use the put/pull method defined within the group params when working with nested sorting so I can move from one nested sorting list to another nested sorting list.
This is the error:
Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
at _sync (angular-legacy-sortable.js:118:46)
at a.onAdd (angular-legacy-sortable.js:172:33)
This is what my config looks like:
vm.list = [
{id: 1, name: 'Name of item 1',
gallery: [
{id: 1, name: 'Name of image 1'},
{id: 2, name: 'Name of image 2'},
{id: 3, name: 'Name of image 3'}
]
},
{id: 2, name: 'Name of item 2',
gallery: [
{id: 1, name: 'Name of image 1'},
{id: 2, name: 'Name of image 2'},
]
},
{id: 3, name: 'Name of item 3', gallery: []}
];
And use it like this:
<ul ng-sortable>
<li ng-repeat="item in vm.list track by item.id">
<p>{{item.name}}</p>
<ul ng-sortable="{group: {name:'child', put: true, pull:true} }">
<li ng-repeat="gallery in item.gallery track by gallery.id">
<p>{{gallery.nome}}</p>
</li>
</ul>
</li>
</ul>
I also tried to define the nested sortable item as follow:
At first I tought my error was similar to #23 but it's a bit different.
Basically, this happens when I try to use the put/pull method defined within the group params when working with nested sorting so I can move from one nested sorting list to another nested sorting list.
This is the error:
This is what my config looks like:
And use it like this:
I also tried to define the nested sortable item as follow:
Both give me the same end result, wich is the error and then stop working 100%.
The text was updated successfully, but these errors were encountered: