Skip to content

Commit 8e506c4

Browse files
committed
fix(FileUpload): handle disabling file delete button
Resolves #5249
1 parent c158dd7 commit 8e506c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/runtime/components/FileUpload.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ const props = withDefaults(defineProps<FileUploadProps<M>>(), {
142142
reset: false,
143143
dropzone: true,
144144
interactive: true,
145+
fileDelete: true,
145146
layout: 'grid',
146147
position: 'outside'
147148
})
@@ -292,6 +293,7 @@ defineExpose({
292293

293294
<slot name="file-trailing" :file="file" :index="index">
294295
<UButton
296+
v-if="fileDelete"
295297
color="neutral"
296298
v-bind="{
297299
...(layout === 'grid' ? {

0 commit comments

Comments
 (0)