Skip to content

Commit

Permalink
Update onFilesChange to return files according to getBase64 prop
Browse files Browse the repository at this point in the history
  • Loading branch information
rouftom committed Dec 31, 2022
1 parent 52f1fcd commit 8fd1ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FileUpload.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ function FileUpload(props) {
}

if (onFilesChange) {
onFilesChange([ ...files ])
onFilesChange(getBase64 ? files : originalFiles)
onContextReady(getContext())
}
// eslint-disable-next-line
Expand Down

0 comments on commit 8fd1ec4

Please sign in to comment.