Browse Source

fix: clear selected range on addEmptyRow

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/5847/head
mertmit 1 year 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) { function addEmptyRow(row?: number) {
const rowObj = _addEmptyRow(row) const rowObj = _addEmptyRow(row)
nextTick().then(() => { nextTick().then(() => {
clearSelectedRange()
makeActive(row ?? data.value.length - 1, 0) makeActive(row ?? data.value.length - 1, 0)
scrollToCell?.() scrollToCell?.()
}) })

Loading…
Cancel
Save