From c384ec94a2b5d4a7f92c98ce56c484e440a6afaf Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 12 Mar 2024 15:38:51 +0100 Subject: [PATCH] fix(Link): active class --- src/runtime/components/Link.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/components/Link.vue b/src/runtime/components/Link.vue index c5eebe52..7583df74 100644 --- a/src/runtime/components/Link.vue +++ b/src/runtime/components/Link.vue @@ -21,9 +21,9 @@ import type { RouteLocation } from '#vue-router' defineOptions({ inheritAttrs: false }) -const props = withDefaults(defineProps(), { as: 'button', type: 'button' }) +const props = withDefaults(defineProps(), { as: 'button', type: 'button', active: undefined }) -const forward = useForwardProps(reactiveOmit(props, 'as', 'type', 'disabled', 'active', 'exact', 'exactQuery', 'exactHash', 'inactiveClass')) +const forward = useForwardProps(reactiveOmit(props, 'as', 'type', 'disabled', 'active', 'exact', 'exactQuery', 'exactHash', 'activeClass', 'inactiveClass')) function resolveLinkClass (route: RouteLocation, currentRoute: RouteLocation, { isActive, isExactActive }: { isActive: boolean, isExactActive: boolean }) { if (props.exactQuery && !isEqual(route.query, currentRoute.query)) {