ソースを参照

fix(js): fix #2424, from html with checkbox bug

zhixin 9 年 前
コミット
3c613f3144
2 ファイル変更6 行追加1 行削除
  1. 4 0
      CHANGELOG.md
  2. 2 1
      src/bootstrap-table.js

+ 4 - 0
CHANGELOG.md

@@ -1,6 +1,10 @@
 ChangeLog
 ---------
 
+### 1.11.1
+
+- fix(js): fix #2439, filterBy cannot filter array keys
+
 ### 1.11.0
 
 - fix(js): fix cardVisible doesn't work bug

+ 2 - 1
src/bootstrap-table.js

@@ -2593,7 +2593,8 @@
         var that = this;
 
         return $.grep(this.options.data, function (row) {
-            return row[that.header.stateField];
+            // fix #2424: from html with checkbox
+            return row[that.header.stateField] === true;
         });
     };