-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.4 doesn't respect checked/unchecked in html any more #707
Comments
Has anyone managed to fix it, other then using an older version? |
It is still not working... Unfortunately! |
I didn't bother comparing the js from the old/new, but something definitely changed within it to cause this issue. |
In the |
Solved here with this:
|
Shouldn't it be The strict operator still leads to classes like this: |
bootstrap-switch 3.3.4 and 3.3.5 are affected by Bttstrp/bootstrap-switch#707
checked / unchecked specified in the html of the input is no longer respected with version 3.4. They will always show in an 'off' state regardless of the true state of the input when loaded.
An example is shown below. This worked perfectly fine with version 3.3.4, yet in 3.4 this will show the switch in an off state when it clearly has 'checked' in the html.
<input type="checkbox" class="make-switch" data-size="small" data-label-width="15" data-on-color="success" data-off-color="danger" data-on-text="Yes" data-off-text="No" name="name" value="1" checked>
The text was updated successfully, but these errors were encountered: