Skip to content

Commit a606a5d

Browse files
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 <1079143+vitormattos@users.noreply.github.com>
1 parent 309ee1e commit a606a5d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)