From c1ac3a9f9d5357bc3a7b125d8793d69d8d518bd3 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Mon, 22 Jul 2024 12:52:28 +0200 Subject: [PATCH] fix(Link): allow `ariaLabel` to be picked --- src/runtime/utils/link.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/utils/link.ts b/src/runtime/utils/link.ts index 7ddd15ce..912b6f7b 100644 --- a/src/runtime/utils/link.ts +++ b/src/runtime/utils/link.ts @@ -1,6 +1,6 @@ import { reactivePick } from '@vueuse/core' import type { LinkProps } from '../types' -export function pickLinkProps(link: LinkProps) { - return reactivePick(link, 'active', 'activeClass', 'ariaCurrentValue', 'as', 'disabled', 'exact', 'exactActiveClass', 'exactHash', 'exactQuery', 'external', 'href', 'inactiveClass', 'noPrefetch', 'noRel', 'prefetch', 'prefetchedClass', 'rel', 'replace', 'target', 'to', 'type') +export function pickLinkProps(link: LinkProps & { ariaLabel?: string }) { + return reactivePick(link, 'active', 'activeClass', 'ariaCurrentValue', 'ariaLabel', 'as', 'disabled', 'exact', 'exactActiveClass', 'exactHash', 'exactQuery', 'external', 'href', 'inactiveClass', 'noPrefetch', 'noRel', 'prefetch', 'prefetchedClass', 'rel', 'replace', 'target', 'to', 'type') }