I'm having a scenario where I have an accordion with 7 tabs, the 7th tab is set to default as it is the one I want open on the page load. Earlier tabs have optional content so they are sometimes hidden.

The default tab only works correctly when all 7 tabs are present, if any are missing this last tab isn't open on the page load anymore.

I did some testing using a hook_quicktabs_alter(), and found that for example when there were only 5 tabs, if I adjusted the default_tab manually to 5 it works as expected. But in the alter function all tabs are present in the array, and there is no way to know if any will be hidden so you can't adjust it dynamically here...

Any idea how we can fix this?

Comments

bensey created an issue.