Browse Source

Fix disabled and check checkbox bug.

zhixin 10 years ago
parent
commit
a114fc851e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -1502,7 +1502,7 @@
                         sprintf(' disabled="%s"', !column.checkboxEnabled ||
                         sprintf(' disabled="%s"', !column.checkboxEnabled ||
                         (value && value.disabled) ? 'disabled' : undefined) +
                         (value && value.disabled) ? 'disabled' : undefined) +
                         ' />',
                         ' />',
-                        that.header.formatters[j] ? value : '',
+                        that.header.formatters[j] && typeof value === 'string' ? value : '',
                         that.options.cardView ? '</div>' : '</td>'
                         that.options.cardView ? '</div>' : '</td>'
                     ].join('');
                     ].join('');