Skip to content

Commit

Permalink
fix(Link): handle active state when to prop is not provided
Browse files Browse the repository at this point in the history
Fixes #988
  • Loading branch information
benjamincanac committed Nov 17, 2023
1 parent 7339324 commit 6cc77a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/elements/Link.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
v-if="!to"
:disabled="disabled"
v-bind="$attrs"
:class="inactiveClass"
:class="active ? activeClass : inactiveClass"
>
<slot />
</component>
Expand Down

1 comment on commit 6cc77a3

@vercel
Copy link

@vercel vercel bot commented on 6cc77a3 Nov 17, 2023

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:

ui – ./

ui-git-dev-nuxt-js.vercel.app
ui-nuxt-js.vercel.app
ui.nuxt.com

Please sign in to comment.