Skip to content

Commit 5b5fe80

Browse files
committed
fix: certificate chain toggle not working on button click
When clicking directly on the toggle button icon, the event was not properly triggering the expand/collapse action. This fix adds @click.stop to the NcButton to ensure the toggle action is executed and prevents event bubbling issues. Signed-off-by: Vitor Mattos <[email protected]>
1 parent 4c774f2 commit 5b5fe80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/views/Validation.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,8 @@
622622
</template>
623623
<template #extra-actions>
624624
<NcButton variant="tertiary"
625-
:aria-label="chainOpenState[signerIndex] ? t('libresign', 'Collapse certificate chain') : t('libresign', 'Expand certificate chain')">
625+
:aria-label="chainOpenState[signerIndex] ? t('libresign', 'Collapse certificate chain') : t('libresign', 'Expand certificate chain')"
626+
@click.stop="toggleState(chainOpenState, signerIndex)">
626627
<template #icon>
627628
<NcIconSvgWrapper v-if="chainOpenState[signerIndex]"
628629
:path="mdiUnfoldLessHorizontal" />

0 commit comments

Comments
 (0)