Skip to content

Commit

Permalink
Fix wenzhixin#3376: init search text to ''
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzhixin committed Dec 12, 2017
1 parent 3fd238c commit 5af7661
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bootstrap-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -2104,6 +2104,7 @@

BootstrapTable.prototype.initSearchText = function () {
if (this.options.search) {
this.searchText = '';
if (this.options.searchText !== '') {
var $search = this.$toolbar.find('.search input');
$search.val(this.options.searchText);
Expand Down

0 comments on commit 5af7661

Please sign in to comment.