Skip to content
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

Switches are not rendered when elements already have data-bootstrap-switch attr #505

Open
mlorant opened this issue Sep 7, 2015 · 0 comments

Comments

@mlorant
Copy link

mlorant commented Sep 7, 2015

The following portion of code does not work:

 <input type="checkbox" data-bootstrap-switch="true" />
 <script>
 $(document).ready(function () { 
      $('input[data-bootstrap-switch="true"]').bootstrapSwitch();
 });
</script>

It works fine with any other data-* name, but since the module use data-bootstrap-switch internally, it fails silently, without any indication to the user/programmer (not even an error in the web console)

I think it should at least throw an error into the console to help the user detect the error quicker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant