Skip to content

Commit

Permalink
simplify the open call
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasfha committed Jan 16, 2024
1 parent b063c83 commit 18dd10c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
</script>

<CldUploadWidget {...baseProps} let:open let:isLoading>
<button {...buttonProps} on:click|preventDefault={() => open()} disabled={isLoading}>
<button {...buttonProps} on:click|preventDefault={open} disabled={isLoading}>
<slot>Upload</slot>
</button>
</CldUploadWidget>

0 comments on commit 18dd10c

Please sign in to comment.