Skip to content

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

@osvathrobi

Description

@osvathrobi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions