From 9fcfeb1029b5abc36a5688d8f4c2d7a03ccbe848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Mon, 14 Aug 2023 18:18:43 +0300 Subject: [PATCH] Fixed #3368 - TabMenu: First tab is always highlighted even when selected other tabs --- src/components/tabmenu/TabMenu.vue | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/components/tabmenu/TabMenu.vue b/src/components/tabmenu/TabMenu.vue index 0ab8e8498..b9ffdc9fa 100755 --- a/src/components/tabmenu/TabMenu.vue +++ b/src/components/tabmenu/TabMenu.vue @@ -72,12 +72,9 @@ export default { index: index }); }, - isActive(item) { - return this.activeRoute.startsWith(item.to); - }, getItemClass(item, index) { return ['p-tabmenuitem', item.class, { - 'p-highlight': this.isActive(item) || this.d_activeIndex === index, + 'p-highlight': this.d_activeIndex === index, 'p-disabled': this.disabled(item) }]; }, @@ -118,11 +115,6 @@ export default { } }, - computed: { - activeRoute() { - return this.$route.path; - } - }, directives: { 'ripple': Ripple }