ソースを参照

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