You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I would like to know if someone knows why I need to refresh my page to start showing the toggle switch, the first time I enter to the page with the toggle it shows a basic checkbox until the refresh and if I put a bootstrap button it shows the first time. thanks
The text was updated successfully, but these errors were encountered:
When using turbolinks the bootstrap-toggle.js is loaded and executed. It is not loaded and executed for subsequent requests that use the turbolinks feature.
what you need to do is in your 'application.js' or equivalent is put this:
You likely have code like this already so just add it in here.
I think if this is added to the docs it should clear things up. The super awesome response would be to detect if under turbolinks and register this function automatically in bootstrap-toggle.js.
Hi I would like to know if someone knows why I need to refresh my page to start showing the toggle switch, the first time I enter to the page with the toggle it shows a basic checkbox until the refresh and if I put a bootstrap button it shows the first time. thanks
The text was updated successfully, but these errors were encountered: