浏览代码

#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 年之前
父节点
当前提交
13207ab377
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;