You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sorted grid: Tab, multi-row copy and the virtual context menu ignore screen order #858
#839 (PR #856) keyed row actions by the row's index in the result, so a sorted or filtered grid acts on the clicked row. Three related problems are still there:
Tab while editing moves to the next row in result order, not the next row on screen, so in a sorted grid it jumps around.
Copying several selected rows writes them in result order, not in the order they appear.
The virtualized layout's context menu always uses column 0. The handler looks for the clicked td, but the virtualized grid renders divs, so "Copy Cell" and "Set NULL" act on the first column whatever was clicked.
Fix
1 and 2: map through table.getRowModel().rows (the on-screen order) when moving the edit cursor and when building the clipboard text.
3: put the column index on each virtual cell (data-col) and read it in the context-menu handler instead of looking for a td.
Add tests for each, sorting the grid first, in src/components/grid/__tests__/ResultsGrid.rowIdentity.test.tsx.
Activity
fix(grid): follow screen order for Tab, copy, menu