Jacobs63 / vue3-tabs-component

Vue 3 tabs component
MIT License
95 stars 27 forks source link

Select default tab without cache lifetime not possible #46

Closed cn42 closed 11 months ago

cn42 commented 1 year ago

Is it possible to change the component to be able to set the default tab at start independently? Now it only works if the cache lifetime is set and active.

Here I found the code to change: https://github.com/Jacobs63/vue3-tabs-component/blob/c36b42bac25c8e4da2e7e7fe4bdaa86d95043fa4/src/components/Tabs.vue#L201-L213

Jacobs63 commented 11 months ago

Hello,

latest version 1.3.7 fixes this issue, as I believe setting the default tab hash should be a fallback (if specified) regardless of whether the cache is enabled or not.