-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
p5.js version
No response
What is your operating system?
None
Web browser and version
No response
Actual Behavior
While investigating #2040 I came across an issue with the rendering of completed uploads:
I did find one thing which we are doing wrong, though I don't think it fixes your issue. It's supposed to stop showing the progress bar when the upload is done and show a check mark instead. That doesn't happen because we are overriding the
complete
function instead of adding a secondary event handler. Therefore the defaultcomplete
behavior is not called and thedz-complete
class never gets added.
https://github.com/dropzone/dropzone/blob/f50d1828ab5df79a76be00d1306cc320e39a27f4/src/options.js#L769-L776https://docs.dropzone.dev/configuration/events#overriding-default-event-handlers
The checkmark animates in for a moment and then goes away. The upload bar remains.
Expected Behavior
This is what it's supposed to to look like, according to the Dropzone documentation.
Steps to reproduce
Steps:
- Click "Upload File"
- Upload a file