Tieredmenu popup performance issue #3476
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
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
The text was updated successfully, but these errors were encountered: