Browse Source

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

Dustin Utecht 3 years ago
parent
commit
ceba5155ab
1 changed files with 4 additions and 1 deletions
  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
     }