浏览代码

Fix #3376: init search text to ''

zhixin 8 年之前
父节点
当前提交
5af766185e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/bootstrap-table.js

+ 1 - 0
src/bootstrap-table.js

@@ -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);