fix: avoid filling new rows

Signed-off-by: mertmit <mertmit99@gmail.com>
This commit is contained in:
mertmit
2023-06-21 19:23:54 +03:00
parent f05c453728
commit f860c909dd

View File

@@ -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