From 694f7a6e67a5f9389ffee7c4f8666a616f0141d4 Mon Sep 17 00:00:00 2001 From: Gitam Gadtaula Date: Sat, 23 Mar 2024 10:02:48 +0545 Subject: [PATCH 1/2] Added HTML attribute: accept in FwbFileInput --- src/components/FwbFileInput/FwbFileInput.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/FwbFileInput/FwbFileInput.vue b/src/components/FwbFileInput/FwbFileInput.vue index 6b2f70d7..5311d46b 100644 --- a/src/components/FwbFileInput/FwbFileInput.vue +++ b/src/components/FwbFileInput/FwbFileInput.vue @@ -7,6 +7,7 @@ :class="fileInpClasses" :multiple="multiple" type="file" + :accept="accept" @change="handleChange" > @@ -65,7 +66,8 @@ interface FileInputProps { label?: string modelValue?: File | File[] | null multiple?: boolean - size?: string + size?: string, + accept?:string, } const props = withDefaults(defineProps(), { @@ -74,6 +76,7 @@ const props = withDefaults(defineProps(), { modelValue: null, multiple: false, size: 'sm', + accept: '' }) const dropZoneText = computed(() => { From 911f1b9c9c43ba0f589ca7da2af27ddf2f331219 Mon Sep 17 00:00:00 2001 From: Gitam Gadtaula Date: Sat, 27 Apr 2024 07:59:00 +0545 Subject: [PATCH 2/2] Update FwbFileInput.vue Added :accept="accept" in the other file input. --- src/components/FwbFileInput/FwbFileInput.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/FwbFileInput/FwbFileInput.vue b/src/components/FwbFileInput/FwbFileInput.vue index 5311d46b..d39ba11f 100644 --- a/src/components/FwbFileInput/FwbFileInput.vue +++ b/src/components/FwbFileInput/FwbFileInput.vue @@ -49,6 +49,7 @@