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>()({
239239 }
240240
241241 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 )
243244
244245 return (
245246 < VInput
Original file line number Diff line number Diff line change @@ -192,7 +192,8 @@ export const VFileUpload = genericComponent<VFileUploadSlots>()({
192192 const [ rootAttrs , inputAttrs ] = filterInputAttrs ( attrs )
193193
194194 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 )
196197
197198 const inputNode = (
198199 < input
You can’t perform that action at this time.
0 commit comments