Skip to content

Commit 2b316be

Browse files
asankovAnton Sankov
andauthored
Fix typo. Fixes Bttstrp#683 (Bttstrp#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]>
1 parent 609a802 commit 2b316be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/bootstrap-switch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function prvwidth() {
5858
return this.$wrapper.width(this.privateHandleWidth + this.privateLabelWidth);
5959
}
6060

61-
function prvcontainerPosition(state = this.ope) {
61+
function prvcontainerPosition(state = this.options.state) {
6262
this.$container.css('margin-left', () => {
6363
const values = [0, `-${this.privateHandleWidth}px`];
6464
if (this.options.indeterminate) {

0 commit comments

Comments
 (0)