Browse Source

Fix event call

djhvscf 7 years ago
parent
commit
283af1e6ac
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/extensions/filter-control/bootstrap-table-filter-control.js

+ 3 - 3
src/extensions/filter-control/bootstrap-table-filter-control.js

@@ -224,6 +224,8 @@
                 }
             }
         });
+
+        that.trigger('created-controls');
     };
 
     var escapeID = function(id) {
@@ -376,8 +378,6 @@
         } else {
             header.find('.filterControl').hide();
         }
-
-        that.trigger('created-controls');
     };
 
     var getDirectionOfSelectOptions = function (alignment) {
@@ -441,7 +441,7 @@
             return false;
         },
         onCreatedControls: function() {
-            return false;
+            return true;
         },
         filterShowClear: false,
         alignmentSelectControlOptions: undefined,