Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix(nc-gui): #6735

Ramesh Mane3d6cb832d4a7
diff --git a/packages/nc-gui/components/cell/TextArea.vue b/packages/nc-gui/components/cell/TextArea.vue
index 55a2da122d..305d141d61 100644
--- a/packages/nc-gui/components/cell/TextArea.vue
+++ b/packages/nc-gui/components/cell/TextArea.vue
@@ -313,13 +313,14 @@ watch(textAreaRef, (el) => {
}
})
-const onCellEvent = (event?: Event) => {
+const onCellEvent = (event?: Event, isCanvasEvent?: boolean) => {
if (!(event instanceof KeyboardEvent) || !event.target) return
if (isExpandCellKey(event)) {
if (isVisible.value && !isActiveInputElementExist(event)) {
handleClose()
- } else {
+ } else if (!isActiveInputElementExist(event) || isCanvasEvent) {
+ // Expand only if user is not editing inline
onExpand()
}
@@ -333,7 +334,7 @@ onMounted(() => {
if (isUnderLookup.value || !isCanvasInjected || !clientMousePosition || isExpandedFormOpen.value || isEditColumn.value) return
const position = { clientX: clientMousePosition.clientX, clientY: clientMousePosition.clientY + 2 }
forcedNextTick(() => {
- if (onCellEvent(canvasCellEventData.event)) return
+ if (onCellEvent(canvasCellEventData.event, true)) return
if (getElementAtMouse('.nc-canvas-table-editable-cell-wrapper .nc-textarea-expand', position)) {
onExpand()