Skip to content

Commit

Permalink
fix(gui): avoid opening expanded form in shared view
Browse files Browse the repository at this point in the history
re #4580

Signed-off-by: Pranav C <pranavxc@gmail.com>
  • Loading branch information
pranavxc committed Jan 19, 2023
1 parent b09d16c commit 88e648c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nc-gui/components/smartsheet/Grid.vue
Expand Up @@ -201,7 +201,7 @@ const { isCellSelected, activeCell, handleMouseDown, handleMouseOver, handleCell
const cmdOrCtrl = isMac() ? e.metaKey : e.ctrlKey
const altOrOptionKey = e.altKey
if (e.key === ' ') {
if (activeCell.row != null && !editEnabled) {
if (activeCell.row != null && !editEnabled && hasEditPermission?.value) {
e.preventDefault()
clearSelectedRange()
const row = data.value[activeCell.row]
Expand Down

0 comments on commit 88e648c

Please sign in to comment.