浏览代码

Reset also the searchText value

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

+ 3 - 1
src/bootstrap-table.js

@@ -3112,7 +3112,9 @@ class BootstrapTable {
   resetSearch (text) {
     const $search = Utils.getSearchInput(this)
 
-    $search.val(text || '')
+    const textToUse = text || ''
+    $search.val(textToUse)
+    this.searchText = textToUse
     this.onSearch({ currentTarget: $search }, false)
   }