ソースを参照

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

Dennis Hernández 7 年 前
コミット
eff97f6acb

+ 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