-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
nbPopover perfomance lag after repeat in loop #1467
Comments
I ran into the same problem. I am guessing that however Nebular (or Angular internally) is keeping references to each item in the list get quite computationally expensive. I had the same issue with using Context Menu. My solution was to revert to using standard Bootstrap Popovers (or Dropdown as a replacement for the ContextMenu). (Note this requires bootstrap) Replace
With
|
2 tasks
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue type
I'm submitting a ... (check one with "x")
Issue description
Current behavior:
In my app i use nbPopover in a table with > 100 rows.
After 80 rows it lags on the popover event for seconds
Expected behavior:
The popup show instantly on an mouseclick
Steps to reproduce:
create a simple loop with an button in the popover example:
this.numbers = Array(500).fill(0).map((x, i) => i); // generate tmp Array
See sample App:
https://stackblitz.com/edit/angular-n5w8ye
Other information:
npm: 6.4.1
os: windows
Browser: Testing in Chrome / IE
Angular, Nebular, see Starblitz
The text was updated successfully, but these errors were encountered: