浏览代码

Fix multiple search bug

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

+ 4 - 0
src/bootstrap-table.js

@@ -681,6 +681,10 @@ class BootstrapTable {
         $(currentTarget).val(text)
       }
 
+      if (this.searchText === text) {
+        return
+      }
+
       this.searchText = text
       this.options.searchText = text
     }