Browse Source

Dont quite the function if filter control container is used

Dustin Utecht 5 years ago
parent
commit
002e4aacec
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/extensions/filter-control/bootstrap-table-filter-control.js

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

@@ -123,7 +123,10 @@ $.BootstrapTable = class extends $.BootstrapTable {
           // Avoid recreate the controls
           const $controlContainer = UtilsFilterControl.getControlContainer(this)
 
-          if ($controlContainer.find('select').length > 0 || $controlContainer.find('input:not([type="checkbox"]):not([type="radio"])').length > 0) {
+          if (
+            ($controlContainer.find('select').length > 0 || $controlContainer.find('input:not([type="checkbox"]):not([type="radio"])').length > 0) &&
+            !this.options.filterControlContainer
+          ) {
             return
           }