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

Tieredmenu popup performance issue #3476

Closed
m-tomczyk opened this issue Jul 21, 2017 · 0 comments
Closed

Tieredmenu popup performance issue #3476

m-tomczyk opened this issue Jul 21, 2017 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@m-tomczyk
Copy link

I'm submitting a ... (check one with "x")

[X] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Current behavior
Using multiple popup tiered menus on page makes whole application unresponsive. Problem is created by registering document click listener in ngAfterViewInit method. Because of Angular change detection cycle being trigered by this kind of events ApplicationRef.tick method is being called multiple times. In my test case with 70 popup tiered menus every click takes about 3sec to execute.

Expected behavior
Application is allowed to contain multiple popup tiered menus and not take massive performance hit.

  • Angular version: 4.2.0

  • PrimeNG version: 4.1.2

  • Browser: All

  • Language: TypeScript

@cagataycivici cagataycivici self-assigned this Jul 26, 2017
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jul 26, 2017
@cagataycivici cagataycivici added this to the 4.1.2 milestone Jul 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants