Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix keyboard navigation when the contentNode is focused
In a grid with few enough rows that there is empty space below them the user can click below the rows causing the grid's contentNode to receive focus. If the arrow keys are then pressed to attempt cell/row navigation an error is thrown. This change checks for and ignores selection of the contentNode. It specifically checks for contentNode instead of the more resilient/generic "not a row or cell" because that condition is more difficult to determine. grid.row() returns undefined for grid.contentNode, but also for any node within the header. Header navigation logic depends on this. Fixes #1297
- Loading branch information