filedrop-svelte icon indicating copy to clipboard operation
filedrop-svelte copied to clipboard

How to use windowDrop with Component?

Open bluepuma77 opened this issue 3 years ago • 1 comments

I want to use multiple FileDrops, therefore disable windowDrop.

I expected

<FileDrop windowDrop="false" on:filedrop={(e) => { files = e.detail.files }}>
        Upload files
</FileDrop>

but I get a TypeScript error. How can I pass the additional option?

bluepuma77 avatar Jun 01 '22 16:06 bluepuma77

Sorry, I just noticed this issue. I'm not sure how I missed it.

Ah, it seems I didn't add window drop as a param on the component. If you need a solution, use the action until I update the package to include it.

chanced avatar Oct 16 '22 17:10 chanced