Skip to content

fix: clear row item for loading grid rows - #12000

Draft
vursen wants to merge 5 commits into
mainfrom
fix/grid-clear-loading-row-item
Draft

fix: clear row item for loading grid rows#12000
vursen wants to merge 5 commits into
mainfrom
fix/grid-clear-loading-row-item

Conversation

@vursen

@vursen vursen commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

WIP

@vursen
vursen force-pushed the fix/grid-clear-loading-row-item branch 2 times, most recently from 5769d2c to 1c3f3d6 Compare June 30, 2026 10:10
@vursen
vursen changed the base branch from main to test/extract-cell-activate June 30, 2026 10:10
@vursen
vursen force-pushed the fix/grid-clear-loading-row-item branch from f7037cf to 1c3f3d6 Compare June 30, 2026 10:16
Base automatically changed from test/extract-cell-activate to main June 30, 2026 10:59
vursen and others added 3 commits June 30, 2026 15:02
Assign row._item unconditionally in __updateRow so a row in a loading
state gets undefined instead of keeping the stale item from its previous
position. Reading row._item during loading (selection, keyboard nav,
drag-and-drop) no longer acts on the wrong item.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Clearing a loading row's item leaves the row without an item while data
reloads, so starting an edit on it crashes on a null editor. Skip the
affected tests until the edit start is deferred until the item loads.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add tests verifying cell-activate and row-activate carry an undefined
item when activating a loading row.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vursen
vursen force-pushed the fix/grid-clear-loading-row-item branch from 1c3f3d6 to 1c6b870 Compare June 30, 2026 11:04
vursen added 2 commits June 30, 2026 15:07
When committing an edit triggers clearCache(), the next cell's row
can still be loading and has no item, so rendering an editor against
it crashes on a null editor. Defer the edit and resume it from
__updateRow once the item has loaded.
@sonarqubecloud

Copy link
Copy Markdown

@vursen
vursen marked this pull request as draft June 30, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant