fix(Link): proxy onClick

Resolves #3631
This commit is contained in:
Benjamin Canac
2025-03-24 19:08:05 +01:00
parent 4a2b77d86c
commit 370054b20c
2 changed files with 2 additions and 1 deletions

View File

@@ -125,7 +125,7 @@ const ui = computed(() => tv({
:type="type"
:disabled="disabled || isLoading"
:class="ui.base({ class: [props.class, props.ui?.base] })"
v-bind="omit(linkProps, ['type', 'disabled'])"
v-bind="omit(linkProps, ['type', 'disabled', 'onClick'])"
custom
>
<ULinkBase

View File

@@ -12,6 +12,7 @@ export function pickLinkProps(link: LinkProps & { [key: string]: any }) {
'exact', 'exactActiveClass', 'exactHash', 'exactQuery', 'external',
'href', 'inactiveClass', 'noPrefetch', 'noRel', 'prefetch',
'prefetchedClass', 'rel', 'replace', 'target', 'to', 'type', 'title',
'onClick',
...ariaKeys,
...dataKeys
]