We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3cf9a9 commit c2858acCopy full SHA for c2858ac
src/components/VueTabs.js
@@ -103,7 +103,10 @@ export default {
103
},
104
findTabAndActivate (tabNameOrIndex) {
105
let indexToActivate = this.tabs.findIndex((tab, index) => tab.title === tabNameOrIndex || index === tabNameOrIndex)
106
- if (indexToActivate === this.activeTabIndex) return
+ // if somehow activeTabIndex is not reflected in the actual vue-tab instance, set it.
107
++ if (indexToActivate === this.activeTabIndex && !this.tabs[this.activeTabIndex].active) {
108
++ this.tabs[this.activeTabIndex].active = true;
109
++ }
110
if (indexToActivate !== -1) {
111
this.changeTab(this.activeTabIndex, indexToActivate)
112
} else {
0 commit comments