Console error: There is no event handler associated with this event

When changing the value of the bound property of the rich text editor in code, a console error appears complaining about a missing event handler. 

This is the code in the razor file defining the editor:


This is the console error with the call stack expanded:


Using v19.2.0.44 (but the problem occurred in v19.1.0.68 as well).

The rich text editor control is the only SF control in use on the page and in the entire application at the moment. It seems to work properly but once this console error occurs the behaviour becomes unpredictable.


4 Replies

RK Revanth Krishnan Syncfusion Team July 1, 2021 01:21 PM UTC

Hi Goran, 
 
 
Greetings from Syncfusion support. 
 
 
We have validated your query “When changing the value of the bound property of the rich text editor in code, a console error appears complaining about a missing event handler.” 
 
We have analyzed the shared code snippet and tried to reproduce the issue by making the sample using the shared code screenshot, but we couldn’t reproduce the issue from our end, changing the value in the code dynamically doesn’t throw any console error. We have prepared a sample for your reference, 
 
Can you please share the following details, 
  • The whole code snippet of the Rich Text Editor on how the value is bound dynamically.
  • The exact package version used in the application.
  • The video illustration of the issue reproducing scenario.
  • If possible please share us with the simple issue reproducing sample or please modify the shared sample with the issue reproducing code.
 
The above details will be helpful for us to validate and reproduce the issue from our end and assist you at the earliest. 
 
Regards, 
Revanth 



SR Sabitha Rajamani Syncfusion Team July 5, 2021 04:25 AM UTC

From: Goran Zidar
Subject: RE: Syncfusion Forum [166831] has a new reply - Console error: There is no event handler associated with this event 
  
 
Thank you for your response... please see the attached video that demonstrates the problem happening. 
 
In the video I am running the app with a text area in place of the sfrichtexteditor control and I am performing the actions to update the value of the text area from selecting different options. I have the browser console open and you can see that there are no errors raised. 
 
I then switch to Visual Studio, uncomment the code to swap the text area for the sfrichtexteditor control and rebuild then return to the app and do the same thing, and you can see the errors in the console. 
 
I then switch back to Visual Studio and put the text area back and rebuild then return to the app and do the same actions and you can see again that there are no errors in the console. The only thing that was changed between these three items was to introduce the sfrichtexteditor control instead of the text area. 
 
Both controls are using the same binding, they are in the same part of the screen and are updated in the same way. 
 
Hopefully you will see in the video the code I have used to bind the sfrichtexteditor. 
 
I am using Blazor WASM 5.0.7 and Syncfusion Rich Text Editor v 19.2.0.44 on Windows. 
 
I will see if I can make the issue happen using your sample project. 
  
 
Regards, 
 
Goran Zidar 
html-editor-event-bug



RK Revanth Krishnan Syncfusion Team July 5, 2021 12:59 PM UTC

Hi Goran, 
 
 
Good day to you. 
 
 
We have further validated your query and analyzed the shared video and we are able to reproduce the issue from our end. 
 
The reported console error is not related to the Rich Text Editor and it occurs for all the focusable elements with the ‘blur’ event.  Please find the below GitHub issue which is reported by the Blazor team, 
Other related links: 
 
This issue was currently resolved and the fix is included in the .NET 6.0 preview 5. 
We are currently validating the support and other functionalities of the Rich Text Editor and other Syncfusion components in the .NET 6.0, we will update you with further details on or before 7th July 2021. 
 
Regards, 
Revanth  



RK Revanth Krishnan Syncfusion Team July 8, 2021 02:18 PM UTC

Hi Goran, 
 
Good day to you. 
 
We have further validated your query and the Rich Text Editor and other Syncfusion components do support in the .NET preview 5. So please upgrade to the .NET preview 5 to resolve the console error. 
Note: This reported console error is not related to the Rich Text Editor and it also doesn’t after the Rich Text Editor functionalities. 
 
Regards, 
Revanth 


Loader.
Up arrow icon