Browse Source

Merge branch 'master' into develop

James Mikesell 9 years ago
parent
commit
521438dd6a
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/extensions/filter-control/bootstrap-table-filter-control.js

+ 7 - 0
src/extensions/filter-control/bootstrap-table-filter-control.js

@@ -594,6 +594,13 @@
             delete this.filterColumnsPartial[$field];
         }
 
+        // if the searchText is the same as the previously selected column value,
+        // bootstrapTable will not try searching again (even though the selected column
+        // may be different from the previous search).  As a work around
+        // we're manually appending some text to bootrap's searchText field
+        // to guarantee that it will perform a search again when we call this.onSearch(event)
+        this.searchText += "randomText";
+
         this.options.pageNumber = 1;
         this.onSearch(event);
         this.updatePagination();