Browse Source

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

Dustin Utecht 6 years ago
parent
commit
8be580deb3
1 changed files with 1 additions and 1 deletions
  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 = [