浏览代码

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>'
                 ].join('');
 
-                item[that.header.stateField] = value === true || (value && value.checked);
+                item[that.header.stateField] = value === true || (!!value_ || value && value.checked);
             } else {
                 value = typeof value === 'undefined' || value === null ?
                     that.options.undefinedText : value;