浏览代码

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

Dennis Hernández 6 年之前
父节点
当前提交
eff97f6acb
共有 1 个文件被更改,包括 4 次插入0 次删除
  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