Browse Source

fix(gui): scroll to active cell

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5011/head
Pranav C 2 years ago
parent
commit
e5ef00f1b3
  1. 6
      packages/nc-gui/components/smartsheet/Grid.vue

6
packages/nc-gui/components/smartsheet/Grid.vue

@ -283,6 +283,12 @@ const {
activeCell.row = data.value.length - 1
activeCell.col = 0
resetSelectedRange()
nextTick(() => {
;(document.querySelector('td.cell.active') as
| HTMLInputElement
| HTMLTextAreaElement
)?.scrollIntoView({ behavior: 'smooth' })
})
}
break
}

Loading…
Cancel
Save