-
Notifications
You must be signed in to change notification settings - Fork 2.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
Bug: Check for cellNav in sub-grid is truthy because of cellNav on parent grid #2294
Comments
This should be fixed with 9bfa6e3. assuming you're including the cellNav module but not adding the directive to your grid. Is that the case? |
@c0bra Its not my case. I have the cellNav module on my grid. When using the expandable grid option I get this error while the grid is expanded and I attempt to scroll. Essentially what is happening is in the code below the error is thrown on this line
|
FYI adding cell nav to the expandable template solved the problem. The issue was cell nav was on the parent grid but not present on the expandable grid.
|
OK so I imagine that what's happening is the uiGridRenderContainer and uiGridCell directives are requesting the uiGridCellnav controller with I'm not really sure of the right way to fix this, but it seems like we might need to do a recursive backwards search of parent nodes to see if the closest 'ui-grid' element has the NB: I'm changing this issue's title to clarify the problem. |
It is happening at this line of code (11418): if (uiGridCtrl.grid.api.cellNav.getFocusedCell() == null)
The grid loads fine but any scrolling causes the error, whether the scrolling is within an expandable row or the grid itself. Something else I noticed but doesn't happen every time, the headers disappear when fully scrolling but I think it may be a browser resize issue. I'll try to reproduce it again.
BTW, great job and many thanks!!!
The text was updated successfully, but these errors were encountered: