fix test flow cancel

This commit is contained in:
Ruben Fiszel
2023-11-11 17:41:37 +01:00
parent eb5067aee5
commit 28d1c75962
2 changed files with 4 additions and 1 deletions
@@ -190,6 +190,7 @@
size="sm"
btnClasses="w-full max-w-lg"
loading={true}
clickableWhileLoading
>
Cancel
</Button>
@@ -19,6 +19,8 @@
export let target: '_self' | '_blank' | undefined = undefined
export let iconOnly: boolean = false
export let clickableWhileLoading = false
export let element: ButtonType.Element | undefined = undefined
export let id: string = ''
export let nonCaptureEvent: boolean = false
@@ -190,7 +192,7 @@
tabindex={disabled ? -1 : 0}
{title}
{...$$restProps}
disabled={disabled || loading}
disabled={disabled || (loading && !clickableWhileLoading)}
{style}
>
{#if loading}