Description
IgxGridSelectionService.generateRange throws when state.node is null. This occurs when a keyboard navigation event fires during an active pointer drag-select, which calls initPointerState() and nulls pointerState.node. If the pointer is then released outside the grid, pointerOriginHandler invokes pointerUp → generateRange(node, this.pointerState), which destructures state.node without a null check.
Framework
Angular
Angular Version
21.2
Ignite UI for Angular Version
21.2
Component / Area
Grid
Browser
Chrome
Operating System
No response
Command Not Working
Steps to Reproduce
- Render an igx-grid with cell selection
- Click and hold on a data cell and begin a drag-select
- Drag the pointer outside the grid boundary
- While still holding the mouse button, press any navigation key (Arrow, Home, etc.)
- Release the mouse button
- Observe the unhandled TypeError in the console
Actual Result
This error is displayed in the console: TypeError: Cannot destructure property 'row' of 'state.node' as it is null.
Expected Result
There should be no error
Reproduction URL
https://stackblitz.com/edit/hqa1n52c?file=src%2Fapp%2Fgrid%2Fgrid-cellSelection-sample%2Fgrid-cellSelection.component.html
Attachments

Description
IgxGridSelectionService.generateRange throws when state.node is null. This occurs when a keyboard navigation event fires during an active pointer drag-select, which calls initPointerState() and nulls pointerState.node. If the pointer is then released outside the grid, pointerOriginHandler invokes pointerUp → generateRange(node, this.pointerState), which destructures state.node without a null check.
Framework
Angular
Angular Version
21.2
Ignite UI for Angular Version
21.2
Component / Area
Grid
Browser
Chrome
Operating System
No response
Command Not Working
Steps to Reproduce
Actual Result
This error is displayed in the console: TypeError: Cannot destructure property 'row' of 'state.node' as it is null.
Expected Result
There should be no error
Reproduction URL
https://stackblitz.com/edit/hqa1n52c?file=src%2Fapp%2Fgrid%2Fgrid-cellSelection-sample%2Fgrid-cellSelection.component.html
Attachments