fix: on close button (#829)

This commit is contained in:
Jason Rasmussen
2026-09-25 11:21:56 +02:00
committed by GitHub
parent ace2cb8a39
commit 6c642a9f23
3 changed files with 3 additions and 3 deletions
@@ -96,7 +96,7 @@
variant="ghost"
size="tiny"
aria-label={t('close', translations)}
onclick={onClose}
onclick={() => onClose()}
/>
{/if}
{#if close}
@@ -35,7 +35,7 @@
<Modal {title} {onClose} {size} {icon} {closeOnBackdropClick} {closeOnEsc}>
<ModalBody {children} />
<ModalFooter>
<Button shape="round" color={closeColor} fullWidth onclick={onClose}>
<Button shape="round" color={closeColor} fullWidth onclick={() => onClose()}>
{closeText}
</Button>
</ModalFooter>
@@ -68,7 +68,7 @@
</div>
{#if onClose}
<div class="flex items-center">
<CloseButton color="secondary" variant="ghost" onclick={onClose} />
<CloseButton color="secondary" variant="ghost" onclick={() => onClose()} />
</div>
{/if}
</div>