Skip to content
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

Toggling visibility of date range picker leads to memory leak #273

Open
gokulb97 opened this issue May 17, 2024 · 1 comment
Open

Toggling visibility of date range picker leads to memory leak #273

gokulb97 opened this issue May 17, 2024 · 1 comment
Labels
date-range-picker DateRangePicker component

Comments

@gokulb97
Copy link

When toggling the date range picker the component using *ngIf cause memory leak.
This issue occurs when we open the calendar popup and hide the date range picker.

Here is example: https://stackblitz.com/edit/stackblitz-starters-jsvxq1

  1. On initial load there was only one instance of date range picker component
    image

  2. After selecting dates and toggle visibility multiple times the no of instances increased
    image

Note: The date range picker is not destroying only if user open calendar popup. I suspect this is due to event listeners attached to the apply and cancel button in the calendar popup.

We have multiple forms contains date range picker and other inputs in a page, which causing large memory leaks.

@gokulb97 gokulb97 changed the title Toggling visibility of Date Range Picker leads to Memory leak Toggling visibility of date range picker leads to memory leak May 17, 2024
@gsumankumar gsumankumar added the date-range-picker DateRangePicker component label Jul 2, 2024
@UdhayaKumarDuraisamy
Copy link

We are pleased to inform you that the reported issue, "Toggling the visibility of the date range picker leads to a memory leak" has been resolved in the latest version 26.2.11. Upgrading to this version will address the issue.

Release Notes: Essential Studio for Angular Weekly Release Release Notes (syncfusion.com)

Root Cause:
The issue occurred because the apply and close button elements were not properly destroyed when the popup was closed.

Solution:
We have addressed this by ensuring that the cancel and apply button elements are correctly removed when the popup is closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
date-range-picker DateRangePicker component
Projects
None yet
Development

No branches or pull requests

3 participants