Event Handlers are not self destroying after component destroy

Hey,


I'm using Rich Text Editor.

The event handlers are not self destroying after component on destroy.


Seems like other issue: https://www.syncfusion.com/forums/171320/dom-nodes-js-event-handlers-are-not-released-by-itself-after-control-destroyed


- Angular 14

- @syncfusion/ej2-angular-richtexteditor: "^20.2.43"




3 Replies

VJ Vinitha Jeyakumar Syncfusion Team August 16, 2022 01:33 PM UTC

Hi Gabriel,


We have tried to replicate the reported issue at our end. but we didn't face any issues as you reported. we have also prepared a sample for your reference.


Can you please share us with below details,

  • Exact issue reproducing steps.
  • Issue replicating video illustration.
  • Entire code snippet.
  • If possible, please share us with the issue reproducing runnable sample or modify the attached sample with the issue reproducing code.

Regards,
Vinitha


GA Gabriel replied to Vinitha Jeyakumar August 16, 2022 06:03 PM UTC

Hi Vinitha,


After installing @syncfusion/ej2-richtexteditor component the error disappeared.


Let me explain:

1. I tried to create an example on StackBlitz, using only "@syncfusion/ej2-angular-richtexteditor";

2. I adjusted the toolbar CSS with:

@import '~@syncfusion/ej2-base/styles/material.css';
@import '~@syncfusion/ej2-icons/styles/material.css';
@import '~@syncfusion/ej2-buttons/styles/material.css';
@import '~@syncfusion/ej2-splitbuttons/styles/material.css';
@import '~@syncfusion/ej2-inputs/styles/material.css';
@import '~@syncfusion/ej2-lists/styles/material.css';
@import '~@syncfusion/ej2-navigations/styles/material.css';
@import '~@syncfusion/ej2-popups/styles/material.css';
@import '~@syncfusion/ej2-richtexteditor/styles/material.css';


3. StackBlitz required the ej2 modules to import. So, I installed the @syncfusion/ej2-richtexteditor and the orthers.

4. And puff... the error disappeared in the StackBlitz project.

5. I tried installing @syncfusion/ej2-richtexteditor on my original project and fixed the problem.


So, my conclusion is: installing only @syncfusion/ej2-angular-richtexteditor​ to use the rich text editor works, but need correction.



VJ Vinitha Jeyakumar Syncfusion Team August 17, 2022 05:52 AM UTC

Hi Gabriel,



We are glad that your issue has been resolved. please get back to us if you need any further assistance.

Regards,
Vinitha

Loader.
Up arrow icon