Skip to content

Commit

Permalink
fix(Link): exact handling
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Feb 23, 2022
1 parent aef1156 commit ceedbe0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/runtime/components/elements/Link.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ export default {
})
function resolveLinkClass ({ isActive, isExactActive }) {
if ((props.exact && isExactActive) || isActive) {
return props.activeClass
if (props.exact) {
return isExactActive ? props.activeClass : props.inactiveClass
} else {
return props.inactiveClass
return isActive ? props.activeClass : props.inactiveClass
}
}
Expand Down

1 comment on commit ceedbe0

@vercel
Copy link

@vercel vercel bot commented on ceedbe0 Feb 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

Please sign in to comment.