diff --git a/demo/src/routes/custom-props/+page.svelte b/demo/src/routes/custom-props/+page.svelte new file mode 100644 index 0000000..4015e89 --- /dev/null +++ b/demo/src/routes/custom-props/+page.svelte @@ -0,0 +1,39 @@ + + +
+ + + +
    + {#each files.accepted as item} +
  1. {item.name}
  2. + {/each} +
+
+ + diff --git a/package-lock.json b/package-lock.json index 94b22cb..c313105 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "svelte-file-dropzone", - "version": "2.0.7", + "version": "2.0.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "svelte-file-dropzone", - "version": "2.0.7", + "version": "2.0.8", "license": "MIT", "dependencies": { "file-selector": "^0.6.0" diff --git a/package.json b/package.json index d0c95ba..771b582 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "svelte-file-dropzone", - "version": "2.0.7", + "version": "2.0.8", "description": "Svelte component for fileupload and file dropzone", "scripts": { "package": "svelte-kit sync && svelte-package && publint", diff --git a/src/lib/components/Dropzone.svelte b/src/lib/components/Dropzone.svelte index e3060c9..26ff4ec 100644 --- a/src/lib/components/Dropzone.svelte +++ b/src/lib/components/Dropzone.svelte @@ -319,6 +319,7 @@ on:dragover={composeDragHandler(onDragOverCb)} on:dragleave={composeDragHandler(onDragLeaveCb)} on:drop={composeDragHandler(onDropCb)} + {...$$restProps} >