Open Ketec opened 7 years ago
Does it crash if you 2-way bind it to an instance of the NgGridItemConfig interface instead of a statically defined object like that? I'm not sure that would be a problem, but I've not seen that error pop up prior.
Seems like this may have been a false positive - simply a coincidence because limit_to_screen: true was set. Which is the real cause of freezes in many cases.
First it occurred when i implemented router reuse for my nav. And figured it must be a bug with the reuse strategy so i disabled router reuse for the page with this grid.
Now i was implementing it for a toggle sidebar - and browser froze every time i added the component with the grid.
Any idea why two bind would cause it to freeze? added in:
And the grid:
If i remove the ngGridItem bind - it works fine. It freezes when you resize or navigate to the component.
And grid conf:
After some more testing - this seems to be caused by limit_to_screen. Possibly when elements are not visible on screen (hidden sidepanel, router reuse storing dom).