ソースを参照

Fix #3242: getSelections bug when transform table from html

zhixin 8 年 前
コミット
fcfbe0cd07
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -1846,7 +1846,7 @@
                     that.options.cardView ? '</div>' : '</td>'
                     that.options.cardView ? '</div>' : '</td>'
                 ].join('');
                 ].join('');
 
 
-                item[that.header.stateField] = value === true || (value && value.checked);
+                item[that.header.stateField] = value === true || (!!value_ || value && value.checked);
             } else {
             } else {
                 value = typeof value === 'undefined' || value === null ?
                 value = typeof value === 'undefined' || value === null ?
                     that.options.undefinedText : value;
                     that.options.undefinedText : value;