If you're using Dropzone with allowMultiple being false, and you drop a image and then you clear the Dropzone, the numFiles state doesn't reset, stay at 1, not allowing the user to upload a new image.
You should be able to reset the Dropzone numFiles state.
You can't reset the Dropzone numFiles state.
In this PR you can see that I'm fixing it by adding a key prop to force an unmount https://github.com/Shopify/online-store-web/pull/2656
If you remove it, you can see that the numFiles state doesn't get reset when I click "Remove Image".
The best way to get your bug fixed is to provide a reduced test case. This CodeSandbox template is a great starting point.
Any update on this issue?
Issue is now resolved :)
Most helpful comment
Any update on this issue?
I've created a sandbox to easily repro. Here are the steps
Add fileand select a fileRemove imageAdd fileand select a file - no longer works