Skip to content

Commit c9c0c48

Browse files
waleedlatif1claude
andcommitted
fix(tables): suppress scroll on Ctrl+A select-all
Cmd/Ctrl+A duplicates the select-all logic but missed the suppressFocusScrollRef flag, so the keyboard path still triggered the viewport jump. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 102ee2f commit c9c0c48

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table/table.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,6 +1302,7 @@ export function Table({
13021302
const rws = rowsRef.current
13031303
const currentCols = columnsRef.current
13041304
if (rws.length > 0 && currentCols.length > 0) {
1305+
suppressFocusScrollRef.current = true
13051306
setEditingCell(null)
13061307
setCheckedRows((prev) => (prev.size === 0 ? prev : EMPTY_CHECKED_ROWS))
13071308
setSelectionAnchor({ rowIndex: 0, colIndex: 0 })

0 commit comments

Comments
 (0)