aidanlister / jquery-stickytabs

Provides persistant state (back and forward button support) for Bootstrap tabs
http://aidanlister.com/2014/03/persisting-the-tab-state-in-bootstrap/
MIT License
60 stars 33 forks source link

Tabs with shown.bs.tab #29

Closed bobort closed 7 years ago

bobort commented 7 years ago

I am having an issue with tabs that have event handlers on the event shown.bs.tab. Basically, when the tab is shown on page load with this plugin, the event is not triggered. I end up having to click on a tab and then clicking on the original tab to get the event to fire. Any ideas on how to address this issue?

bobort commented 7 years ago

I got it. I needed to wrap the stickyTabs call in a document.ready function that is called after the events are initialized in their own document.ready function.