From a2e0652985559069ff13eac61274e620ddc4c603 Mon Sep 17 00:00:00 2001 From: David Mellen Date: Mon, 2 Dec 2024 09:45:36 +0100 Subject: [PATCH] fix: resolve bug with single file upload drag and drop --- src/runtime/components/input/T3FileUpload.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/components/input/T3FileUpload.vue b/src/runtime/components/input/T3FileUpload.vue index 8f4c461..ce3bcba 100644 --- a/src/runtime/components/input/T3FileUpload.vue +++ b/src/runtime/components/input/T3FileUpload.vue @@ -148,7 +148,7 @@ function updateFiles(newValue: File[] | undefined) { inputEl.value.files = dataTransfer.files - setValue(newValue) + setValue(!props.multiple ? newValue?.at(0) : newValue) } }