Skip to content

Commit

Permalink
fix(router): empty string to represent real empty "to" (#19614)
Browse files Browse the repository at this point in the history
fixes #19549
  • Loading branch information
yuwu9145 authored Apr 16, 2024
1 parent b055773 commit 3f301b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vuetify/src/composables/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function useLink (props: LinkProps & LinkListeners, attrs: SetupContext['
// vue-router useLink `to` prop needs to be reactive and useLink will crash if undefined
const linkProps = computed(() => ({
...props,
to: toRef(() => props.to || {}),
to: toRef(() => props.to || ''),
}))

const routerLink = RouterLink.useLink(linkProps.value as UseLinkOptions)
Expand Down

0 comments on commit 3f301b5

Please sign in to comment.