diff --git a/src/components/BaseUploader/BaseUploader.vue b/src/components/BaseUploader/BaseUploader.vue index 9cc10b8..46d282d 100644 --- a/src/components/BaseUploader/BaseUploader.vue +++ b/src/components/BaseUploader/BaseUploader.vue @@ -73,6 +73,7 @@ const drop = (e: DragEvent) => { const removeFile = (index: number) => { allFiles.value.splice(index, 1); filesUploadError.value = ''; + emit('update:files', allFiles.value); emit('remove', index); }; @@ -90,6 +91,7 @@ const removeFile = (index: number) => { @dragover.prevent="dragover" @dragleave.prevent="dragleave" @drop.prevent="drop" + @click="triggerFileInput" > {