ソースを参照

Parameter not being passed to resetSearch function

When using $table.bootstrapTable('resetSearch', 'searchText') the parameter was not being passed to the function
Greg 6 年 前
コミット
2eca12d0d5

+ 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 () {