Closed kievsash closed 1 year ago
I observed similar issue in ejs-checkbox as well
Hi kievsash,
We have tried to run the sample you have attached, but which is not runnable at our end. So, we have created a sample similar to your use case scenario and checked the reported issue using both chrome and edge browser. But we couldn't find any memory leak with RichTextEditor control as you reported. Please find the attached sample below,
Can you please share us with the simple issue replicating runnable sample or modify the attached sample with the issue reproducing code and also share exact issue replication steps to further validate on our end.
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/RTE_memory52961508
To reproduce issue you should
What was thr issue you couldnt start reproduce app?
I downloaded your reproduce app and could reproduce an increase in DOM nodes on each iteration (enter page with richeditor and then navigating from it with routerlink) to page with rich-editor
And here is reproduce in your app in Edge Dev tools - > detached Elements tab you can see that on after each visit of page with richeditor - number fo detached (lost) elements is increasing
Hi kievsash,
We investigated this reported issue from our end, and after further validation we considered this is as a bug at our end and we have logged the bug report for the same. Also, we have planned to resolve this issue in our any of our upcoming volume releases. You can track the status of this fix in the feedback link below.
Please let us know if you have any concerns.
Regards, Vinitha
Thank you for cooperation. Link shows me "Access Denied"
Hi kievsash,
We have moved the feedback status to public. Now you can access the bug feedback. Please check the link below,
https://www.syncfusion.com/feedback/42986/need-to-resolve-detached-element-leak-in-angular-platfrom
Regards, Vinitha
For housekeeping purposes, we are closing this ticket. You can track the progress of the reported bug by clicking on the feedback link below. https://www.syncfusion.com/feedback/42986/need-to-resolve-detached-element-leak-in-angular-platfrom
@gsumankumar , one remark
In Form-base.ts you addEventListener on AfterViewInit method https://github.com/syncfusion/ej2-angular-ui-components/blob/master/components/base/src/form-base.ts#L108C1-L110C79
But AFAI see you do not remove these listeners in component which uses FormBase
Maybe it make sense to add ngOnDestroy to FormBase where you removeEventListeners and then call it from ngOnDestroy of specific component which uses FormBase()? (similar to what you do with this.formContext.ngAfterViewInit(this); but with ngOnDestroy also) https://github.com/syncfusion/ej2-angular-ui-components/blob/master/components/richtexteditor/src/rich-text-editor/richtexteditor.component.ts#L214
Hi
I observe detached Elements leak in @syncfusion/ej2-angular-richtexteditor ^21.1.35
I created minimal Angular repo with reproduce code: https://github.com/kievsash/syncfusion-richtextedit-leak
Steps to reproduce:
Please take a look