mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
fix(nuxt): do not pass prefetched class to custom link (#7522)
This commit is contained in:
parent
391ba89243
commit
3ed63a6b70
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user