Skip to content

Commit

Permalink
Fix typo. Fixes #683 (#700)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
asankov and Anton Sankov authored Jan 3, 2021
1 parent 609a802 commit 2b316be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/bootstrap-switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2b316be

Please sign in to comment.