react-mui-fileuploader icon indicating copy to clipboard operation
react-mui-fileuploader copied to clipboard

context.removeFile does not work, internal indices are different to context.files indices

Open frederic-welsch opened this issue 1 year ago • 0 comments

Hi, there seems to be a problem regards removing files with the context. The list of files in the onFilesChange Handler and the context.files is sorted in alphabetical order of the filenames. So when I remove the file with index 0, the file has in the original file list of the component index 1. I use getBase64={false}. And there are no types for the context, it is typed as object.

frederic-welsch avatar Apr 13 '23 10:04 frederic-welsch