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
When I use a nested array, I keep getting an error on this line here:
var array = collection.filter(function(item){
return !item.container;
}).map(function(item){
return {
part: item.getPart().id,
y: item.element[0].getBoundingClientRect().top //Here is where the console point to
};
});
But the only one I want to filter is the main array, not the items. Everything works fine as expected. But there is this error appearing everytime I move an item. Like I said, this error is not stoping the sorting,drag, drop functionality, but still there is this error.
My HTML:
<section sv-root sv-part="vm.category" sv-on-sort="vm.sortList()">
<div ng-repeat="item in vm.category track by item.id" sv-element>
<div><h4>{{category.name}}</h4></div>
<div class="row">
<div class="col" ng-repeat="product in category.items"></div>
</div>
</div>
</section>
The text was updated successfully, but these errors were encountered:
When I use a nested array, I keep getting an error on this line here:
My array looks like this:
But the only one I want to filter is the main array, not the
items
. Everything works fine as expected. But there is this error appearing everytime I move an item. Like I said, this error is not stoping the sorting,drag, drop functionality, but still there is this error.My HTML:
The text was updated successfully, but these errors were encountered: