Skip to content

Commit

Permalink
fix: server side pagination
Browse files Browse the repository at this point in the history
Do not set offset to 0 when rows are changed so that you can show data loaded from the server for the second page.
Reverts swimlane#516
  • Loading branch information
deeg committed Feb 21, 2017
1 parent ec6faf4 commit ad11b60
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/datatable.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ export class DatatableComponent implements OnInit, AfterViewInit, DoCheck {
}

this._rows = val;
//reset page offset on input changes due to filtering or other reason
this.offset = 0;
// recalculate sizes/etc
this.recalculate();
}
Expand Down

0 comments on commit ad11b60

Please sign in to comment.