Skip to content

[P1] [bug] Tab in editable cell doesn't move focus — editingCellRef never read #408

Closed

Description

@EVWorth

[P1] [bug] Tab/Shift+Tab inside editable cell doesn't move focus to next cell

Context

FR-3.2.1 acceptance: "Tab to move to next cell; Escape to cancel". EditableCell.handleKeyDown calls commitEdit then onTab?.(shiftKey).

Problem

Per docs/audits/results.md F15.

The onTab callback at ResultsGrid.tsx:393-403 sets editingCellRef.current = { rowIndex, colIndex: nextCol } but does not actually focus the next cell. No cellRef map, no document.querySelector, no .focus() call. The user tabs out of the input but focus lands on the next focusable DOM element (probably a footer button or tab header), not the next cell. Edit cell id in row 0, press Tab → focus jumps to the footer Copy button instead of name in row 0.

Files

  • src/components/grid/ResultsGrid.tsx:393-403

Repro (if applicable)

Static analysis only.

Expected

Tabbing across row 0 moves focus through id → name → ...; shift+tab moves back; tabbing past last column wraps to row 1 col 0.

Proposed fix

Scope M. Add data-row={rowIdx} data-col={colIdx} to each cell; after onTab(nextCol), focus document.querySelector(\[data-row=""][data-col=""] input`)`.

Acceptance

Tabbing cycles through cells in document order.

Needs human verify

Yes

Labels: audit, area/results, severity/p1, kind/bug

Activity

  1. added
    audit
    severity/p1
    kind/bug
    area/results
    on Jul 31, 2026
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

    area/resultsauditkind/bugseverity/p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions