فهرست منبع

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) {