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

Prevent tab pane from activating twice #37

Closed mstrelan closed 8 years ago

mstrelan commented 9 years ago

Due to the bindTabToCollapse function, activating a tab activates a panel, and activating a panel activates a tab. This causes double activation which can cause an animation glitch.

Open the demo and click "Key Features" and then "Source" in quick succession. After source loads, key features loads a second time and then source loads a second time. Alternatively, add the "fade" class to the tab panes and watch the content fade in then out then in again.

cbier commented 8 years ago

This fixed the issue that I was having as well. Thanks @mstrelan! @openam please merge this in.