Skip to content

Add multi-row deletion via context menu#158

Merged
debba merged 1 commit into
TabularisDB:mainfrom
thomaswasle:feature/multi-row-deletion
May 4, 2026
Merged

Add multi-row deletion via context menu#158
debba merged 1 commit into
TabularisDB:mainfrom
thomaswasle:feature/multi-row-deletion

Conversation

@thomaswasle
Copy link
Copy Markdown
Contributor

feat(data-grid): multi-row deletion via context menu

Users could previously only delete one row at a time from the context menu, even when multiple
rows were selected. This change makes the context menu deletion respect the current selection.

What changed

Multi-row delete via context menu

  • Right-click on any row that is part of a multi-selection → context menu now shows "Delete X
    rows" and marks all selected rows for deletion at once
  • Right-clicking a row that is not part of the current selection still deletes only that single
    row — no change to existing behaviour
  • Works for both regular rows and unsaved insertion rows (new rows are discarded, existing rows
    are marked for deletion as before and still require an explicit save)

Bug fix: stale state overwrites

  • The previous per-row callback (onMarkForDeletion) read pendingDeletions from a ref snapshot on
    every call. In a loop this meant each call saw the same stale object and only the last pk value
    survived. Fixed by collecting all pk values first and applying them in a single updateTab call
    via the new onMarkMultipleForDeletion prop.

i18n

  • Added deleteRows key with {{count}} interpolation to all 6 supported locales: en, de, es, fr,
    it, zh

@debba debba merged commit 8dd7e2f into TabularisDB:main May 4, 2026
1 check passed
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