chanced / filedrop-svelte

File dropzone for Svelte.
MIT License
109 stars 12 forks source link

How to use windowDrop with Component? #11

Open bluepuma77 opened 2 years ago

bluepuma77 commented 2 years ago

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?

chanced commented 1 year ago

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.