Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
osvathrobi opened this issue Apr 10, 2019 · 0 comments
Open

Comments

@osvathrobi
Copy link

osvathrobi commented Apr 10, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant