Skip to content

Commit

Permalink
Merge pull request #278 from gitamgadtaula/main
Browse files Browse the repository at this point in the history
Added HTML attribute: accept in FwbFileInput
  • Loading branch information
Sqrcz authored Apr 29, 2024
2 parents 8dec713 + 911f1b9 commit d2b984a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/FwbFileInput/FwbFileInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
:class="fileInpClasses"
:multiple="multiple"
type="file"
:accept="accept"
@change="handleChange"
>
</label>
Expand Down Expand Up @@ -48,6 +49,7 @@
<input
:multiple="multiple"
type="file"
:accept="accept"
class="hidden"
>
</label>
Expand All @@ -65,7 +67,8 @@ interface FileInputProps {
label?: string
modelValue?: File | File[] | null
multiple?: boolean
size?: string
size?: string,
accept?:string,
}
const props = withDefaults(defineProps<FileInputProps>(), {
Expand All @@ -74,6 +77,7 @@ const props = withDefaults(defineProps<FileInputProps>(), {
modelValue: null,
multiple: false,
size: 'sm',
accept: ''
})
const dropZoneText = computed(() => {
Expand Down

0 comments on commit d2b984a

Please sign in to comment.