Browse Source

fix(gui): on new row creation using shortcut set the first cell as active

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

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

@ -283,14 +283,6 @@ const {
activeCell.row = data.value.length - 1
activeCell.col = 0
resetSelectedRange()
makeEditable(data.value[activeCell.row], fields.value[activeCell.col])
nextTick(() => {
;(
document.querySelector('td.cell.active')?.querySelector('input,textarea') as
| HTMLInputElement
| HTMLTextAreaElement
)?.focus()
})
}
break
}

Loading…
Cancel
Save