Permalink
Browse files

fix(reload): trigger load when the current page is 1

  • Loading branch information...
VMBindraban
VMBindraban committed Jun 21, 2016
1 parent 1794647 commit aad6e258dd1f60b3ce70e907d3e8a1821998a3b7
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/datatable.js
@@ -123,7 +123,11 @@ export class DataTable {
}
reload() {
this.pager.reloadCount(); // Sets page to 1, and triggers this.pageChanged() (reload data).
this.pager.reloadCount(); // sets page to 1, and triggers this.pageChanged() (reload data).
if (this.page === 1) {
this.load(); // this.pageChanged() won't trigger if the current page is already page 1.
}
}
@computedFrom('columns')

0 comments on commit aad6e25

Please sign in to comment.