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:
if (selected.row < data.value.length - 1) {
selected.row++
} else {
editEnabled = false
}
break
case NavigateDir.PREV:
if (selected.row > 0) {
selected.row--
} else {
editEnabled = false
}
break
}

Loading…
Cancel
Save