Browse Source

fix check function wrong variable name (#3975)

$this is undefined here, $el should be semantically the right thing here.
Peter Tissen 7 years ago
parent
commit
7b6a3342d5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -2818,7 +2818,7 @@
         for (let r of this.options.data) {
         for (let r of this.options.data) {
           r[this.header.stateField] = false
           r[this.header.stateField] = false
         }
         }
-        this.$selectItem.filter(':checked').not($this).prop('checked', false)
+        this.$selectItem.filter(':checked').not($el).prop('checked', false)
       }
       }
 
 
       row[this.header.stateField] = checked
       row[this.header.stateField] = checked