Skip to content

Commit

Permalink
Merge pull request #2529 from LorianColtof/master
Browse files Browse the repository at this point in the history
Fix `router-link-active` class assignment in PanelMenuSub - fixes #2528
  • Loading branch information
tugcekucukoglu authored Jun 2, 2022
2 parents 75a2829 + ef93cd9 commit 915cd2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/panelmenu/PanelMenuSub.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<li role="none" :class="getItemClass(item)" :style="item.style" v-if="visible(item) && !item.separator">
<template v-if="!template">
<router-link v-if="item.to && !disabled(item)" :to="item.to" custom v-slot="{navigate, href, isActive:isRouterActive, isExactActive}">
<a :href="href" :class="linkClass(item, {isRouterActive, isExactActive})" @click="onItemClick($event, item, navigate)" role="treeitem" :aria-expanded="isActive(item)">
<a :href="href" :class="linkClass(item, {isActive:isRouterActive, isExactActive})" @click="onItemClick($event, item, navigate)" role="treeitem" :aria-expanded="isActive(item)">
<span :class="['p-menuitem-icon', item.icon]"></span>
<span class="p-menuitem-text">{{label(item)}}</span>
</a>
Expand Down

0 comments on commit 915cd2a

Please sign in to comment.