浏览代码

fix bug with check if a checkbox is check if a formatter is used

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

+ 1 - 1
src/bootstrap-table.js

@@ -1293,7 +1293,7 @@ class BootstrapTable {
         type = column.radio ? 'radio' : type
 
         const c = column['class'] || ''
-        const isChecked = value === true || (value_ || (value && value.checked))
+        const isChecked = (value === true || value_ || (value && value.checked)) && value !== false
         const isDisabled = !column.checkboxEnabled || (value && value.disabled)
 
         text = [