fix(Link): handle active state when to prop is not provided

Fixes #988
This commit is contained in:
Benjamin Canac
2023-11-17 18:56:54 +01:00
parent 7339324355
commit 6cc77a3e6c

View File

@@ -4,7 +4,7 @@
v-if="!to"
:disabled="disabled"
v-bind="$attrs"
:class="inactiveClass"
:class="active ? activeClass : inactiveClass"
>
<slot />
</component>