Fixed #417 - TabMenu should include subpaths in active tab detection

pull/426/head
cagataycivici 2020-08-04 15:52:48 +03:00
parent 5c847c0292
commit 7fb409d6ac
1 changed files with 1 additions and 1 deletions

View File

@ -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, {