Browse Source

Update bootstrap-table-group-by.js

Fixed the build of the checkbox in bootstrap-table, which has data-single-select="true"
EgorTrutnev 2 years ago
parent
commit
0f5ecf5652
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/extensions/group-by-v2/bootstrap-table-group-by.js

+ 1 - 1
src/extensions/group-by-v2/bootstrap-table-group-by.js

@@ -128,7 +128,7 @@ BootstrapTable.prototype.initBody = function (...args) {
     let visibleColumns = 0
 
     this.columns.forEach(column => {
-      if (column.checkbox) {
+      if (column.checkbox && !that.options.singleSelect) {
         checkBox = true
       } else if (column.visible) {
         visibleColumns += 1