Browse Source

Parameter not being passed to resetSearch function

When using $table.bootstrapTable('resetSearch', 'searchText') the parameter was not being passed to the function
Greg 6 years ago
parent
commit
2eca12d0d5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/extensions/filter-control/bootstrap-table-filter-control.js

+ 2 - 2
src/extensions/filter-control/bootstrap-table-filter-control.js

@@ -779,11 +779,11 @@ $.BootstrapTable = class extends $.BootstrapTable {
     super.initToolbar()
   }
 
-  resetSearch () {
+  resetSearch (text) {
     if (this.options.filterControl && this.options.showSearchClearButton) {
       this.clearFilterControl()
     }
-    super.resetSearch()
+    super.resetSearch(text)
   }
 
   clearFilterControl () {