Permalink
Browse files

fix(search): prevent fetching data twice if default searchColumn is c…

…hanged
  • Loading branch information...
VMBindraban
VMBindraban committed Jun 14, 2016
1 parent eef4c68 commit 75d26afcf81339bee09dd774080c457458a48049
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/datatable.js
@@ -107,6 +107,10 @@ export class DataTable {
doSearch() {
this.criteria.where = {[this.searchColumn]: {contains: this.search}};
if (!this.pager) {
return;
}
this.pager.reloadCount();
this.load();

0 comments on commit 75d26af

Please sign in to comment.