浏览代码

go through the visible data not through the whole data to prevent index (#4406)

issues
Dustin Utecht 6 年之前
父节点
当前提交
ab7c9a31a4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -2448,7 +2448,7 @@ class BootstrapTable {
     }
 
     const rows = []
-    this.options.data.forEach((row, i) => {
+    this.data.forEach((row, i) => {
       if (!row.hasOwnProperty(obj.field)) {
         return false
       }