diff --git a/svelte-cloudinary/src/lib/components/CldUploadButton.svelte b/svelte-cloudinary/src/lib/components/CldUploadButton.svelte index 05e496b5..82aac25f 100644 --- a/svelte-cloudinary/src/lib/components/CldUploadButton.svelte +++ b/svelte-cloudinary/src/lib/components/CldUploadButton.svelte @@ -49,7 +49,10 @@ uploadPreset, signatureEndpoint }; + // appears because of the spread operator on line 39 + // this attributes should not be passed to the button html elements since are not valid attributes delete buttonProps['$$slots']; + // @ts-expect-error delete buttonProps['$$scope'];