froala / wysiwyg-editor

The next generation Javascript WYSIWYG HTML Editor.
https://www.froala.com/wysiwyg-editor
Other
5.23k stars 665 forks source link

"Uploading" dialog not closing when cancelling upload in "image.beforeUpload" #4735

Open tor-inge opened 4 months ago

tor-inge commented 4 months ago

If you have a feature suggestion, please add it on the Feature List instead.

Expected behavior.

(Describe expected behaviour here) When you cancel a fileupload by returning false in the event file.beforeUpload it should cancel the fileupload. It does that, however it doesn't close the modal/dialog that says "Uploading".

https://froala.com/wysiwyg-editor/docs/events/#file.beforeUpload

Actual behavior.

(Describe actual behaviour here) Cancels the file upload, but doesn't close the modal/dialog that says "Uploading"

Steps to reproduce the problem.

(Describe the steps to reproduce the problem here. A jsFiddle is awesome when possible.) Try to upload an image onto the Froala editor and see how the "File uploading" modal doesn't close. https://jsfiddle.net/r5b9ta0s/

Editor version.

If you don't know it, please see https://wysiwyg-editor.froala.help/hc/en-us/articles/360000717049-How-can-I-find-my-editor-version-. Froala Version: 4.1.2

OS.

(OS name and version here) OS Name Microsoft Windows 11 Pro Version 10.0.22000 Build 22000

Browser.

(Browser name an version here) Google Chrome Version 120.0.6099.225 (Official Build) (64-bit)

Recording.

(A recording showing how to reproduce the problem)