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

Filtering with ng-repeat causes items to disappear when you reorder

Open osvathrobi opened this issue 6 years ago • 0 comments

I have a 'disabled' field on my items (in addition to sorting, I am allowing users to edit and delete items).

I feel like this should be possible to write: <tr as-sortable-item ng-repeat="product in (filteredProducts = (products | filter:{disabled:'0'}))">

It seems to be working, but if any items are filtered and you start dragging things to reorder - items, that you did not intend to, disappear when you drop to finish the reordering.

osvathrobi avatar Apr 10 '19 12:04 osvathrobi