Permalink
Browse files

fix(data): wait loading data till attached is called

  • Loading branch information...
VMBindraban
VMBindraban committed Jun 15, 2016
1 parent 75d26af commit f9afd2feaf78a049ec2f3575d87f0f313aa35389
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/datatable.js
@@ -41,6 +41,8 @@ export class DataTable {
}
attached() {
this.ready = true;
this.load();
}
@@ -107,7 +109,7 @@ export class DataTable {
doSearch() {
this.criteria.where = {[this.searchColumn]: {contains: this.search}};
if (!this.pager) {
if (!this.ready) {
return;
}

0 comments on commit f9afd2f

Please sign in to comment.