Skip to content

sortCache does not work #50

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

Closed
saulsluz opened this issue Jun 27, 2017 · 1 comment
Closed

sortCache does not work #50

saulsluz opened this issue Jun 27, 2017 · 1 comment
Assignees

Comments

@saulsluz
Copy link

I tested in my application and in live demo. The bug is alive!

The steps:
1 . Perform any "filter"
2 . Perform any "sort"
3 . Remove the "filter"

The result is that you dont get all results again.
The feature "sortCache" inside applyFilters function not work properly.

A workaround is simple: just comment it.

                //if ($scope.sortOptions.predicate && $scope.sortCache && $scope.sortCache.predicate === $scope.sortOptions.predicate
                //    && $scope.sortCache.direction === $scope.sortOptions.direction) {
                //    $scope.filtered = $scope.sortCache.data.slice();
                //    sorted = true;
                //} else {
                    $scope.filtered = $scope._gridOptions.data.slice();
                //}
@AndreyChayko
Copy link
Contributor

Issue closed as duplicate of #57

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

3 participants