Browse Source

fix(gui-v2): onNavigate disable edit on edge

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/3213/head
mertmit 2 years ago
parent
commit
a7981c82a5
  1. 4
      packages/nc-gui-v2/components/smartsheet/Grid.vue

4
packages/nc-gui-v2/components/smartsheet/Grid.vue

@ -280,11 +280,15 @@ const onNavigate = (dir: NavigateDir) => {
case NavigateDir.NEXT: case NavigateDir.NEXT:
if (selected.row < data.value.length - 1) { if (selected.row < data.value.length - 1) {
selected.row++ selected.row++
} else {
editEnabled = false
} }
break break
case NavigateDir.PREV: case NavigateDir.PREV:
if (selected.row > 0) { if (selected.row > 0) {
selected.row-- selected.row--
} else {
editEnabled = false
} }
break break
} }

Loading…
Cancel
Save