Skip to content

Commit 3eff115

Browse files
committed
Prevents event propagation on toggle button click
Adds `.prevent.stop` modifiers to the click event handler of the toggle button to prevent default browser behavior and stop event propagation. This ensures that clicking the button does not trigger unintended parent or sibling event listeners (e.g. item click in the GCard).
1 parent 5e2a6db commit 3eff115

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/components/Common/TextSummary.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const textTooLong = computed(() => {
5454
role="button"
5555
tabindex="0"
5656
@keyup.enter="showDetails = !showDetails"
57-
@click="showDetails = !showDetails">
57+
@click.prevent.stop="showDetails = !showDetails">
5858
<template v-if="showExpandText">
5959
<template v-if="showDetails">Show less</template>
6060
<template v-else>Show more</template>

0 commit comments

Comments
 (0)