Skip to content

Commit 05db323

Browse files
committed
chore(compat): do not pass extra props in link if there is no nuxt
1 parent d035937 commit 05db323

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/link/link.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ export const BLink = /*#__PURE__*/ Vue.extend({
105105
return this.isRouterLink
106106
? {
107107
...pluckProps(
108-
omit({ ...routerLinkProps, ...nuxtLinkProps }, ['event', 'prefetch', 'routerTag']),
108+
omit(
109+
{ ...routerLinkProps, ...(this.computedTag === 'nuxt-link' ? nuxtLinkProps : {}) },
110+
['event', 'prefetch', 'routerTag']
111+
),
109112
this
110113
),
111114
// Only add these props, when actually defined

0 commit comments

Comments
 (0)