浏览代码

Allow filtering of not visible columns if filterControlContainer is used (#6311)

Dustin Utecht 3 年之前
父节点
当前提交
ceba5155ab
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/extensions/filter-control/utils.js

+ 4 - 1
src/extensions/filter-control/utils.js

@@ -359,7 +359,10 @@ export function createControls (that, header) {
   $.each(that.columns, (_, column) => {
     html = []
 
-    if (!column.visible) {
+    if (
+      !column.visible &&
+      !(that.options.filterControlContainer && $(`.bootstrap-table-filter-control-${column.field}`).length >= 1)
+    ) {
       return
     }