Skip to content

fix(data-grid): fix cell clearing - #1140

Merged
sadmann7 merged 1 commit into
mainfrom
sadman/delete-select
Jun 14, 2026
Merged

sadmann7 merged 1 commit into
mainfrom
sadman/delete-select

Conversation

@sadmann7

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings June 14, 2026 12:33
@vercel

vercel Bot commented Jun 14, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
tablecn Ready Ready Preview, Comment Jun 14, 2026 12:33pm

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.

Pull request overview

This PR fixes data-grid cell clearing so that select-variant cells are cleared to null (consistent with other parts of the grid logic) and centralizes “empty value” computation via getEmptyCellValue, which is then reused by the context-menu clear action.

Changes:

  • Update getEmptyCellValue to return null for select variants.
  • Refactor context-menu “Clear” to call getEmptyCellValue instead of duplicating variant logic.
  • Update the component/library registry snapshot (public/r/data-grid.json) to match the source changes.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/lib/data-grid.ts Extends getEmptyCellValue so select clears to null.
src/components/data-grid/data-grid-context-menu.tsx Uses getEmptyCellValue when clearing selected cells.
public/r/data-grid.json Updates stored source snapshots to reflect the new logic/imports.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/lib/data-grid.ts
@sadmann7
sadmann7 merged commit ab52bf3 into main Jun 14, 2026
8 checks passed
@sadmann7
sadmann7 deleted the sadman/delete-select branch June 14, 2026 12:36

This branch was successfully deployed

1 active deployment
Preview — b794aa29 Deployed Jun 14, 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