Browse Source

Adding line to clear values from filter control (#4202)

Dennis Hernández 6 years ago
parent
commit
eff97f6acb
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/extensions/filter-control/bootstrap-table-filter-control.js

+ 4 - 0
src/extensions/filter-control/bootstrap-table-filter-control.js

@@ -826,6 +826,10 @@
           item.value = ''
         })
 
+        $.each(that.options.filterControls, (i, item) => {
+          item.text = ''
+        })
+
         UtilsFilterControl.setValues(that)
 
         // clear cookies once the filters are clean