openam / bootstrap-responsive-tabs

Bootstrap responsive tabs are tabs that switch to collapsible components (accordions) when resized.
openam.github.io/bootstrap-responsive-tabs
MIT License
132 stars 60 forks source link

Multiple tab groups on same page - Bug fixed (probably) #24

Closed ktsixit closed 8 years ago

ktsixit commented 10 years ago

Hi and thank you for this script.

In my page I have set two different tab groups and I noticed that the "active" tab was not converted to active panel properly. I tried to study the code and the fix I applied was to move this part

if ( activeTab ) { $( activeTab ).collapse( 'show' ); }

inside:

$.each( tabGroups, function () {...}

I don't know it it's the best way to solve this issue but it did. Hope that it will be helpful for others.