File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,8 @@ export const VFileInput = genericComponent<VFileInputSlots>()({
239
239
}
240
240
241
241
const expectsDirectory = attrs . webkitdirectory !== undefined && attrs . webkitdirectory !== false
242
- const inputAccept = expectsDirectory ? undefined : ( props . filterByType ?? String ( attrs . accept ) )
242
+ const acceptFallback = attrs . accept ? String ( attrs . accept ) : undefined
243
+ const inputAccept = expectsDirectory ? undefined : ( props . filterByType ?? acceptFallback )
243
244
244
245
return (
245
246
< VInput
Original file line number Diff line number Diff line change @@ -192,7 +192,8 @@ export const VFileUpload = genericComponent<VFileUploadSlots>()({
192
192
const [ rootAttrs , inputAttrs ] = filterInputAttrs ( attrs )
193
193
194
194
const expectsDirectory = attrs . webkitdirectory !== undefined && attrs . webkitdirectory !== false
195
- const inputAccept = expectsDirectory ? undefined : ( props . filterByType ?? String ( attrs . accept ) )
195
+ const acceptFallback = attrs . accept ? String ( attrs . accept ) : undefined
196
+ const inputAccept = expectsDirectory ? undefined : ( props . filterByType ?? acceptFallback )
196
197
197
198
const inputNode = (
198
199
< input
You can’t perform that action at this time.
0 commit comments