Browse Source

fix: clear selected range on addEmptyRow

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

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

@ -831,6 +831,7 @@ const deleteSelectedRangeOfRows = () => {
function addEmptyRow(row?: number) {
const rowObj = _addEmptyRow(row)
nextTick().then(() => {
clearSelectedRange()
makeActive(row ?? data.value.length - 1, 0)
scrollToCell?.()
})

Loading…
Cancel
Save