Skip to content

Commit b3ebb4b

Browse files
committed
fix(DsfrNavigationMenuLink): 🐛 utilise onClick passé en prop
1 parent 6f2d023 commit b3ebb4b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/components/DsfrHeader/DsfrHeaderMenuLink.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const iconProps = computed(() => typeof props.icon === 'string'
6767
}"
6868
v-bind="linkData"
6969
:target="target"
70-
@click.stop="onClick"
70+
@click.stop="onClick($event)"
7171
>
7272
<template
7373
v-if="!dsfrIcon && (icon || iconAttrs?.name) && !iconRight"

src/components/DsfrNavigation/DsfrNavigationMenuLink.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const iconProps = computed(() => (dsfrIcon.value || !props.icon)
3636
data-testid="nav-external-link"
3737
:href="(to as string)"
3838
@click="$emit('toggleId', id)"
39+
@click.stop="onClick($event)"
3940
>
4041
{{ text }}
4142
</a>
@@ -48,6 +49,7 @@ const iconProps = computed(() => (dsfrIcon.value || !props.icon)
4849
[String(icon)]: dsfrIcon,
4950
}"
5051
@click="$emit('toggleId', id)"
52+
@click.stop="onClick($event)"
5153
>
5254
<VIcon
5355
v-if="icon && iconProps"

0 commit comments

Comments
 (0)