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 · 0 comments
Open

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

gokulb97 opened this issue May 17, 2024 · 0 comments

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant