Browse Source

feat: highlight pasted range

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/5847/head
mertmit 1 year ago
parent
commit
bb5f80e03a
  1. 4
      packages/nc-gui/composables/useMultiSelect/index.ts

4
packages/nc-gui/composables/useMultiSelect/index.ts

@ -469,6 +469,10 @@ export function useMultiSelect(
}
}
await bulkUpdateRows?.(rowsToPaste, propsToPaste)
// highlight the pasted range
selectedRange.startRange({ row: activeCell.row, col: activeCell.col })
selectedRange.endRange({ row: activeCell.row + pasteMatrixRows - 1, col: activeCell.col + pasteMatrixCols - 1 })
} else {
// handle belongs to column
if (

Loading…
Cancel
Save