Browse Source

fix: Pressing space on rich modal will not bring up expanded form

pull/7046/head
Muhammed Mustafa 10 months ago
parent
commit
8d0d08e790
  1. 4
      packages/nc-gui/components/smartsheet/grid/Table.vue

4
packages/nc-gui/components/smartsheet/grid/Table.vue

@ -565,7 +565,9 @@ const {
const cmdOrCtrl = isMac() ? e.metaKey : e.ctrlKey
const altOrOptionKey = e.altKey
if (e.key === ' ') {
if (isCellActive.value && !editEnabled.value && hasEditPermission.value && activeCell.row !== null) {
const isRichModalOpen = isExpandedCellInputExist()
if (isCellActive.value && !editEnabled.value && hasEditPermission.value && activeCell.row !== null && !isRichModalOpen) {
e.preventDefault()
const row = dataRef.value[activeCell.row]
expandForm?.(row)

Loading…
Cancel
Save