Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
fix(data): wait loading data till attached is called
Browse files Browse the repository at this point in the history
  • Loading branch information
VMBindraban committed Jun 15, 2016
1 parent 75d26af commit f9afd2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/datatable.js
Expand Up @@ -41,6 +41,8 @@ export class DataTable {
} }


attached() { attached() {
this.ready = true;

this.load(); this.load();
} }


Expand Down Expand Up @@ -107,7 +109,7 @@ export class DataTable {
doSearch() { doSearch() {
this.criteria.where = {[this.searchColumn]: {contains: this.search}}; this.criteria.where = {[this.searchColumn]: {contains: this.search}};


if (!this.pager) { if (!this.ready) {
return; return;
} }


Expand Down

0 comments on commit f9afd2f

Please sign in to comment.