From 7fb409d6acd494475a437e92b37c496165b73b16 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Tue, 4 Aug 2020 15:52:48 +0300 Subject: [PATCH] Fixed #417 - TabMenu should include subpaths in active tab detection --- src/components/tabmenu/TabMenu.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tabmenu/TabMenu.vue b/src/components/tabmenu/TabMenu.vue index 2007d1a51..6346dd00f 100755 --- a/src/components/tabmenu/TabMenu.vue +++ b/src/components/tabmenu/TabMenu.vue @@ -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, {