Fixed #417 - TabMenu should include subpaths in active tab detection
parent
5c847c0292
commit
7fb409d6ac
|
@ -50,7 +50,7 @@ export default {
|
|||
}
|
||||
},
|
||||
isActive(item) {
|
||||
return this.activeRoute === item.to || this.activeRoute === item.to + '/' ;
|
||||
return this.activeRoute.startsWith(item.to);
|
||||
},
|
||||
getItemClass(item) {
|
||||
return ['p-tabmenuitem', item.class, {
|
||||
|
|
Loading…
Reference in New Issue