Fixed #3368 - TabMenu: First tab is always highlighted even when selected other tabs
parent
4090ecf803
commit
9fcfeb1029
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue