fix(LinkCustom): handle button when no to prop

This commit is contained in:
Benjamin Canac
2023-05-11 17:03:02 +02:00
parent 3335a6a32c
commit c7c78cb47b

View File

@@ -1,5 +1,9 @@
<template>
<button v-if="!$attrs.to" v-bind="$attrs" :class="inactiveClass">
<slot />
</button>
<NuxtLink
v-else
v-slot="{ href, navigate, exact, isActive, isExactActive }"
custom
>