diff --git a/packages/bbui/src/Form/Core/Dropzone.svelte b/packages/bbui/src/Form/Core/Dropzone.svelte index 9dd2cbbc73..5b5c72b809 100644 --- a/packages/bbui/src/Form/Core/Dropzone.svelte +++ b/packages/bbui/src/Form/Core/Dropzone.svelte @@ -15,6 +15,8 @@ export let fileSizeLimit = BYTES_IN_MB * 20 export let processFiles = null export let handleFileTooLarge = null + export let gallery = true + export let error = null const dispatch = createEventDispatcher() const imageExtensions = [ @@ -52,6 +54,8 @@ const newValue = [...value, ...processedFiles] dispatch("change", newValue) selectedImageIdx = newValue.length - 1 + } else { + dispatch("change", fileList) } } @@ -94,47 +98,68 @@
{#if selectedImage} -