Skip to content

fix(data-grid): exclude select column from cmd+a selection - #1156

Merged
sadmann7 merged 2 commits into
mainfrom
sadman/fix-cmd-a-select-column
Sep 21, 2026
Merged

sadmann7 merged 2 commits into
mainfrom
sadman/fix-cmd-a-select-column

Conversation

@sadmann7

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI lite review requested due to automatic review settings September 21, 2026 17:01
@vercel

vercel Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
tablecn Ready Ready Preview Sep 21, 2026 5:12pm UTC

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

Range expansion still uses unfiltered column IDs and can reselect non-navigable cells.

Review effort: Lite
Findings: None

What changed in this PR

Updates data-grid selection to exclude non-navigable utility columns from bulk and row selections.

Changes:

  • Uses navigable columns for Cmd+A and row selection.
  • Adds regression coverage for select/actions columns.
File Summary
src/​registry/​bases/​radix/​hooks/​use-data-grid.ts Excludes non-navigable columns from selections.
src/​registry/​bases/​base/​hooks/​use-data-grid.ts Mirrors the selection updates.
src/​hooks/​test/​use-data-grid.test.tsx Adds selection regression tests.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@sadmann7
sadmann7 merged commit df42d1f into main Sep 21, 2026
7 checks passed
@sadmann7
sadmann7 deleted the sadman/fix-cmd-a-select-column branch September 21, 2026 17:12

This branch was successfully deployed

1 active deployment
Preview — 88533326 Deployed Sep 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants