Browse Source

#214 - Pagination is not updated when filter is used
- use public getter to get data for pagination instead of directly access private properties

Lukas Kral 11 years ago
parent
commit
13207ab377
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -670,7 +670,7 @@
             $first, $pre,
             $next, $last,
             $number,
-            data = this.searchText ? this.data : this.options.data;
+            data = this.getData();
 
         if (this.options.sidePagination !== 'server') {
             this.options.totalRows = data.length;