Browse Source

Reset also the searchText value

djhvscf 4 years ago
parent
commit
ac50829162
1 changed files with 3 additions and 1 deletions
  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)
   }