浏览代码

Fix bug - 4746 - Column checkbox not being disabled in case of toggleAll

Fixes issue #4746
Where column checkbox is not being disabled when the checked column
count is equal to minimumCountColumns:
Akshay Varma 6 年之前
父节点
当前提交
3b1d796e86
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -2342,7 +2342,7 @@ class BootstrapTable {
     this.initBody()
 
     if (this.options.showColumns) {
-      const $items = this.$toolbar.find('.keep-open input').prop('disabled', false)
+      const $items = this.$toolbar.find('.keep-open input:not(".toggle-all")').prop('disabled', false)
 
       if (needUpdate) {
         $items.filter(Utils.sprintf('[value="%s"]', index)).prop('checked', checked)