-
Notifications
You must be signed in to change notification settings - Fork 162
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
igx-grid - Potential memory leak. There are event listeners that are not removed as expected. #3033
Labels
🐛 bug
Any issue that describes a bug
🧨 severity: medium
grid: general
✅ status: resolved
Applies to issues that have pending PRs resolving them, or PRs that have already merged.
Comments
SlavUI
added
🐛 bug
Any issue that describes a bug
grid: general
🧨 severity: medium
🆕 status: new
labels
Nov 19, 2018
PavlovVasil
added
🛠️ status: in-development
Issues and PRs with active development on them
and removed
🆕 status: new
labels
Nov 20, 2018
PavlovVasil
added a commit
that referenced
this issue
Nov 23, 2018
PavlovVasil
added a commit
that referenced
this issue
Nov 23, 2018
This was referenced Nov 23, 2018
PavlovVasil
added
✅ status: resolved
Applies to issues that have pending PRs resolving them, or PRs that have already merged.
and removed
🛠️ status: in-development
Issues and PRs with active development on them
labels
Nov 23, 2018
PavlovVasil
added a commit
that referenced
this issue
Nov 23, 2018
PavlovVasil
added a commit
that referenced
this issue
Nov 23, 2018
PavlovVasil
added a commit
that referenced
this issue
Nov 26, 2018
PavlovVasil
added a commit
that referenced
this issue
Nov 26, 2018
PavlovVasil
added a commit
that referenced
this issue
Nov 27, 2018
PavlovVasil
added a commit
that referenced
this issue
Nov 27, 2018
kdinev
added a commit
that referenced
this issue
Nov 28, 2018
Preventing a memory leak #3033 - 6.2.x
kdinev
added a commit
that referenced
this issue
Nov 28, 2018
Preventing a memory leak #3033 - master
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
🐛 bug
Any issue that describes a bug
🧨 severity: medium
grid: general
✅ status: resolved
Applies to issues that have pending PRs resolving them, or PRs that have already merged.
Description
Some event listeners on
igx-grid
don't be removed as expected. So, it causes memory leak.Steps to reproduce.
Here is the
addEventListener
s that have problem.https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/grids/grid-base.component.ts#L2146
https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/grids/grid-base.component.ts#L2192
https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/grids/grid-base.component.ts#L2196
https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/grids/grid-base.component.ts#L2213
https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/grids/grid-base.component.ts#L4306
Result
These event listeners are added with
bind()
.Expected result
They should be implemented like this.
https://stackoverflow.com/questions/11565471/removing-event-listener-which-was-added-with-bind#answer-22870717
The text was updated successfully, but these errors were encountered: