Skip to content

Commit c7c78cb

Browse files
committed
fix(LinkCustom): handle button when no to prop
1 parent 3335a6a commit c7c78cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/runtime/components/elements/LinkCustom.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<template>
2+
<button v-if="!$attrs.to" v-bind="$attrs" :class="inactiveClass">
3+
<slot />
4+
</button>
25
<NuxtLink
6+
v-else
37
v-slot="{ href, navigate, exact, isActive, isExactActive }"
48
custom
59
>

0 commit comments

Comments
 (0)