Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(nuxt): do not pass prefetched class to custom link (#7522)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Sep 15, 2022
1 parent 391ba89 commit 3ed63a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/src/app/components/nuxt-link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export function defineNuxtLink (options: NuxtLinkOptions) {
{
ref: process.server ? undefined : (ref: any) => { el!.value = ref?.$el },
to: to.value,
class: prefetched.value && (props.prefetchedClass || options.prefetchedClass),
...((prefetched.value && !props.custom) ? { class: props.prefetchedClass || options.prefetchedClass } : {}),
activeClass: props.activeClass || options.activeClass,
exactActiveClass: props.exactActiveClass || options.exactActiveClass,
replace: props.replace,
Expand Down

0 comments on commit 3ed63a6

Please sign in to comment.