Skip to content

Commit

Permalink
fix(pagination): should be able to toggle Pagination
Browse files Browse the repository at this point in the history
- we should be able to toggle Pagination and it should still work as expected after showing it again
- the previous code was disposing of the Pagination Service when hiding (disposing) the Pagination Component but that shouldn't be the case, disposing of the Service should strictly be handled by the Angular-Slickgrid-Component
  • Loading branch information
ghiscoding committed Jun 28, 2021
1 parent d933829 commit 4272b18
Show file tree
Hide file tree
Showing 4 changed files with 141 additions and 115 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@ export class SlickPaginationComponent implements OnDestroy, OnInit {
}

dispose() {
this.paginationService?.dispose();

// also unsubscribe all Angular Subscriptions
this.subscriptions = unsubscribeAllObservables(this.subscriptions);
}
Expand Down

0 comments on commit 4272b18

Please sign in to comment.