You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 5, 2022. It is now read-only.
After I added some new images to the uploader that has defaultImages prop, then I removed the first default image, it works well with the URLs, but the first uploaded image file in the file list also was deleted.
It turns out that the file list length and the URL list length do not match in this case, so I decided to clone your component and update the onDropFile(e) function by replacing push URL and file by unshift them.
After I added some new images to the uploader that has defaultImages prop, then I removed the first default image, it works well with the URLs, but the first uploaded image file in the file list also was deleted.
It turns out that the file list length and the URL list length do not match in this case, so I decided to clone your component and update the onDropFile(e) function by replacing
push
URL and file byunshift
them.The other way is updating the removeImage(picture) to remove the correct element, but I cannot find the solution.
If there is something wrong with my approach, please let me know.
The text was updated successfully, but these errors were encountered: