Browse Source

Fixed all checkbox not auto check after pagination changed (#5926)

文翼 4 years ago
parent
commit
d8c0d3879d
1 changed files with 1 additions and 4 deletions
  1. 1 4
      src/bootstrap-table.js

+ 1 - 4
src/bootstrap-table.js

@@ -1761,9 +1761,9 @@ class BootstrapTable {
     }
 
     this.initBodyEvent()
-    this.updateSelected()
     this.initFooter()
     this.resetView()
+    this.updateSelected()
 
     if (this.options.sidePagination !== 'server') {
       this.options.totalRows = data.length
@@ -2998,9 +2998,6 @@ class BootstrapTable {
       this.options.height = params.height
     }
 
-    this.$selectAll.prop('checked', this.$selectItem.length > 0 &&
-      this.$selectItem.length === this.$selectItem.filter(':checked').length)
-
     this.$tableContainer.toggleClass('has-card-view', this.options.cardView)
 
     if (!this.options.cardView && this.options.showHeader && this.options.height) {