fix(grid): preserve contiguous row selection
This commit is contained in:
1 parent
15d392bc44
commit
8c8c48f9b1
3 files changed
+91
-4
No files matched your search
@@ -7437,7 +7437,6 @@ function onCellContext(rowId: number, rowIndex: number, colIdx: number, visibleC
|
||||
contextHeaderColumnIndex.value = null;
|
||||
contextCell.value = { rowId, rowIndex, col: colIdx };
|
||||
if (hasRowSelection.value && isRowSelected(rowId)) {
|
||||
clearCellSelection();
|
||||
void prefetchCopyStatements();
|
||||
return;
|
||||
}
|
||||
@@ -7576,9 +7575,6 @@ function onRowContext(rowId: number, rowIndex: number) {
|
||||
contextHeaderColumn.value = null;
|
||||
contextHeaderColumnIndex.value = null;
|
||||
contextCell.value = { rowId, rowIndex, col: -1 };
|
||||
if (hasRowSelection.value && isRowSelected(rowId)) {
|
||||
clearCellSelection();
|
||||
}
|
||||
if (!isRowSelected(rowId)) {
|
||||
clearCellSelection();
|
||||
selectedRowIds.value = new Set([rowId]);
|
||||
|
||||
Reference in new issue
Block a user