Browse Source

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

pull/7046/head
Muhammed Mustafa 1 year 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 cmdOrCtrl = isMac() ? e.metaKey : e.ctrlKey
const altOrOptionKey = e.altKey const altOrOptionKey = e.altKey
if (e.key === ' ') { 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() e.preventDefault()
const row = dataRef.value[activeCell.row] const row = dataRef.value[activeCell.row]
expandForm?.(row) expandForm?.(row)

Loading…
Cancel
Save