From 2b316be8001254ef9f6e229144b625c4674560cb Mon Sep 17 00:00:00 2001 From: Anton Sankov Date: Sun, 3 Jan 2021 14:50:41 +0200 Subject: [PATCH] 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 --- src/js/bootstrap-switch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/bootstrap-switch.js b/src/js/bootstrap-switch.js index 69dc129c..8cdf6bf1 100644 --- a/src/js/bootstrap-switch.js +++ b/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) {