Skip to content

Sorted grid: Tab, multi-row copy and the virtual context menu ignore screen order #858

Closed

Description

@EVWorth

Severity: P2.

#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:

  1. 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.
  2. Copying several selected rows writes them in result order, not in the order they appear.
  3. 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.

Found while fixing #839.

Activity

  1. added a commit that references this issue on Oct 29, 2026
    f2a51c2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions