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
you should be setting this in your template… same place you are setting checked=checked
but for some reason if you can't access your template… just include this:
$(function(){// you may want to add an additional check to make sure that the parent is the element you expect it to be$('[checked="checked"]').parent().addClass('active')})
One possible reason is that I don't think there's a non-super-hacky way (at least without overhauling the plugin) to make that also work for elements added to the DOM after the initial page load, which would be a confusing/annoying inconsistency.
Activity
johnnyshields commentedon Nov 25, 2013
👍 +1 having the same issue
johnnyshields commentedon Nov 25, 2013
Here's a quick coffeescript hack for those who need it:
johnnyshields commentedon Dec 22, 2013
At a minimum, please provide us a JS function which will set the correct button state across the page, which we can call at page load time.
fat commentedon Dec 24, 2013
you should be setting this in your template… same place you are setting
checked=checkedbut for some reason if you can't access your template… just include this:
aaronchi commentedon Dec 25, 2013
Why not add this to the library though?
cvrebert commentedon Dec 26, 2013
One possible reason is that I don't think there's a non-super-hacky way (at least without overhauling the plugin) to make that also work for elements added to the DOM after the initial page load, which would be a confusing/annoying inconsistency.
cvrebert commentedon Feb 8, 2014
Duplicate of #8919.