Skip to content

Commit

Permalink
Merge pull request wenzhixin#1117 from dbkaplun/issue-1116
Browse files Browse the repository at this point in the history
Don’t wait when applying searchText from options
  • Loading branch information
wenzhixin committed Aug 7, 2015
2 parents 12d9497 + 57bdb3e commit 9078e03
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/bootstrap-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -1025,10 +1025,7 @@

if (this.options.searchText !== '') {
$search.val(this.options.searchText);
clearTimeout(timeoutId); // doesn't matter if it's 0
timeoutId = setTimeout(function () {
$search.trigger('keyup');
}, that.options.searchTimeOut);
that.onSearch({currentTarget: $search});
}
}
};
Expand Down

0 comments on commit 9078e03

Please sign in to comment.