From 9e366016ff834d8891d7e85190dc78260d45bc2c Mon Sep 17 00:00:00 2001 From: okosohor Date: Fri, 15 Nov 2024 15:58:04 +0200 Subject: [PATCH] fix: add mupltiple prop to Dropzone --- src/lib/forms/Dropzone.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/forms/Dropzone.svelte b/src/lib/forms/Dropzone.svelte index bc6c1f77f..e637b1d2e 100644 --- a/src/lib/forms/Dropzone.svelte +++ b/src/lib/forms/Dropzone.svelte @@ -6,6 +6,7 @@ value?: string; files?: FileList | undefined; defaultClass?: string; + multiple?: boolean; } type $$Props = DropzoneProps & HTMLInputAttributes; @@ -13,6 +14,7 @@ export let value: $$Props['value'] = ''; export let files: $$Props['files'] = undefined; export let defaultClass: $$Props['defaultClass'] = 'flex flex-col justify-center items-center w-full h-64 bg-gray-50 rounded-lg border-2 border-gray-300 border-dashed cursor-pointer dark:hover:bg-bray-800 dark:bg-gray-700 hover:bg-gray-100 dark:border-gray-600 dark:hover:border-gray-500 dark:hover:bg-gray-600'; + export let multiple: $$Props['multiple'] = false; let input: HTMLInputElement; @@ -33,7 +35,7 @@