浏览代码

fix check function wrong variable name (#3975)

$this is undefined here, $el should be semantically the right thing here.
Peter Tissen 7 年之前
父节点
当前提交
7b6a3342d5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -2818,7 +2818,7 @@
         for (let r of this.options.data) {
           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