Browse Source

fix(gui): avoid opening expanded form in shared view

re #4580

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

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

@ -201,7 +201,7 @@ const { isCellSelected, activeCell, handleMouseDown, handleMouseOver, handleCell
const cmdOrCtrl = isMac() ? e.metaKey : e.ctrlKey const cmdOrCtrl = isMac() ? e.metaKey : e.ctrlKey
const altOrOptionKey = e.altKey const altOrOptionKey = e.altKey
if (e.key === ' ') { if (e.key === ' ') {
if (activeCell.row != null && !editEnabled) { if (activeCell.row != null && !editEnabled && hasEditPermission?.value) {
e.preventDefault() e.preventDefault()
clearSelectedRange() clearSelectedRange()
const row = data.value[activeCell.row] const row = data.value[activeCell.row]

Loading…
Cancel
Save