Skip to content

Commit e53f8bb

Browse files
BenoitRanquerstoenescu
authored andcommitted
Remove Active Flag when on other Route (quasarframework#1011)
if router link is not active, yet the parent QTabs tabName === name, select no tab.
1 parent d714b46 commit e53f8bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/tab/QRouteTab.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ export default {
2222
if (this.$el.classList.contains('router-link-active') || this.$el.classList.contains('router-link-exact-active')) {
2323
this.selectTab(this.name)
2424
}
25+
else if (this.data.tabName === this.name) {
26+
this.selectTab('')
27+
}
2528
})
2629
}
2730
},

0 commit comments

Comments
 (0)