Browse Source

fix: Hooked cell click to open expanded form in mobile view

pull/6490/head
Muhammed Mustafa 1 year ago
parent
commit
fd536c2d75
  1. 12
      packages/nc-gui/components/smartsheet/grid/Table.vue

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

@ -497,7 +497,7 @@ const {
activeCell,
handleMouseDown,
handleMouseOver,
handleCellClick,
handleCellClick: _handleCellClick,
clearSelectedRange,
copyValue,
isCellActive,
@ -1135,6 +1135,16 @@ const expandAndLooseFocus = (row: Row, col: Record<string, any>) => {
activeCell.col = null
selectedRange.clear()
}
const handleCellClick = (event: MouseEvent, row: number, col: number) => {
const rowData = dataRef.value[row]
if (isMobileMode.value) {
return expandAndLooseFocus(rowData, fields.value[col])
}
_handleCellClick(event, row, col)
}
</script>
<template>

Loading…
Cancel
Save