-
Notifications
You must be signed in to change notification settings - Fork 728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Paste Image to HtmlEditor throws Exception #1046
Comments
Hi thanks for the quick reply. @akorchev you are right, the image is loaded. If you open the browser developer console, there is an error thrown (no error shown on the page, no crash etc). Try this:
|
The fact that the image is uploaded means that the paste handler ran successfully. I can confirm there wasn't any error in the browser console. Can you try breaking with the debugger in the paste handler to see what the actual problem is? |
The handler does not execute the custom code in the event handler on Paste.
In your video nothing is written to the event console as well when pasting the image. |
The Paste event isn't raised when a file is pasted. You can check the implementation. I still cannot reproduce any JS error though. Here is how it works with the debugger enabled. |
Seems like some issue with my firefox. |
Describe the bug
Radzen.Blazor.js runs into an exception when trying to copy/paste an image into the editor in firefox.
Detailed:
Firefox allows to copy and image and paste that into the radzen html editor. (chromium does not allow this).
When doing so the image is displayed correctly, but the paste listener is not invoced correclty, as there is an TypeError: item is undefined thrown. This prevents custom code in the onPaste from being executed.
To Reproduce
Steps to reproduce the behavior:
Alternatively link your repo with a sample project that can be run.
Expected behavior
No Exception thrown
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: