Skip to content

Grid cells jumble after resizing grid - Cannot read properties of null (reading 'getRootNode') #13546

@baleeds

Description

@baleeds

Description

When resizing the grid after horizontally scrolling, the grid can't recover the scroll position correctly, and crashes in a severe way, jumbling the cell data.

The issue is in the IgForOf directive.

The issue is reproducible across various machines and browsers.

  • igniteui-angular version: 16.0.27
  • browser: Chrome - Version 117.0.5938.149 (Official Build) (arm64)

Steps to reproduce

  1. Load this repository: https://github.com/baleeds/infragistics-angular-grid-bug
  2. Start the app.
  3. Scroll the grid to the right so that at least some of the columns are off the screen.
  4. Click the "Toggle sidebar" button once. Click the button again.
  5. Scroll the grid back to the left.
  6. The cells are jumbled and there's a javascript error in the console.

Result

The cells are jumbled after a JavaScript NPE.

Expected result

The cells should be normal.

Attachments

I've included a video of myself running the app in the repository above since it was too big to upload.

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions