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

Performance and Memory Leak when using ngbDropdown #2336

Closed
carlos-algms opened this issue Apr 21, 2018 · 1 comment
Closed

Performance and Memory Leak when using ngbDropdown #2336

carlos-algms opened this issue Apr 21, 2018 · 1 comment

Comments

@carlos-algms
Copy link

Bug description:

Each ngbDropdown inserted in the HTML is binding global mouse events.
Those events are exponentially triggering changes detection to all components on the screen, causing application slowdown and, depending on number of components on the page, the app get freeze.

Link to minimally-working plunker that reproduces the issue:

https://stackblitz.com/edit/angular-or5uez

One can just click on a blank area of the demo and look at the console to see logs growing.
It is happening no mater where the click happens.

Version of Angular, ng-bootstrap, and Bootstrap:

Angular: All

ng-bootstrap: 1.1.2

Bootstrap: not relevant

@pkozlowski-opensource
Copy link
Member

Duplicate of #900

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants