Browse Source

fix: avoid filling new rows

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

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

@ -298,6 +298,11 @@ export function useMultiSelect(
function handleMouseOver(event: MouseEvent, row: number, col: number) {
if (isFillMode.value) {
const rw = unref(data)[row]
// fill is not supported for new rows yet
if (rw.rowMeta.new) return
fillRange.endRange({ row, col: selectedRange.end.col })
scrollToCell?.(row, col)
return

Loading…
Cancel
Save