浏览代码

Fix typo. Fixes #683 (#700)

Apparently, this typo leads to a bug with the select button - it is ON, but displayed as OFF, because it is unable to iterate through the classes that muse be set

Co-authored-by: Anton Sankov <[email protected]>
Anton Sankov 4 年之前
父节点
当前提交
2b316be800
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/js/bootstrap-switch.js

+ 1 - 1
src/js/bootstrap-switch.js

@@ -58,7 +58,7 @@ function prvwidth() {
   return this.$wrapper.width(this.privateHandleWidth + this.privateLabelWidth);
 }
 
-function prvcontainerPosition(state = this.ope) {
+function prvcontainerPosition(state = this.options.state) {
   this.$container.css('margin-left', () => {
     const values = [0, `-${this.privateHandleWidth}px`];
     if (this.options.indeterminate) {