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
[P1] [bug] Tab in editable cell doesn't move focus — editingCellRef never read #408
[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`)`.
Activity