Permalink
Browse files

fix(datatable): wait for ready state

  • Loading branch information...
VMBindraban committed Jun 24, 2016
1 parent 52cb4d7 commit 77bd0aae27ffd8cb4b503b979db675eb1e3de370
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/datatable.js
@@ -113,12 +113,20 @@ export class DataTable {
}
searchColumnChanged(newValue, oldValue) {
if (!this.ready) {
return;
}
delete this.criteria.where[oldValue];
return this.doSearch();
}
doSearch() {
if (!this.ready) {
return;
}
if (typeof this.criteria.where[this.searchColumn] === 'object') {
this.criteria.where[this.searchColumn].contains = this.search;
} else {

0 comments on commit 77bd0aa

Please sign in to comment.