From d78e019b3f6e6f70296a4c43287be47e9acadeaf Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Wed, 15 Nov 2023 07:31:06 +0000 Subject: [PATCH] fix: Added click to preview text area lookup and show new line in text area --- packages/nc-gui/components/cell/TextArea.vue | 12 +++++++++++- packages/nc-gui/components/smartsheet/Cell.vue | 2 +- packages/nc-gui/components/virtual-cell/Lookup.vue | 6 +++++- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui/components/cell/TextArea.vue b/packages/nc-gui/components/cell/TextArea.vue index 826e76a7a1..90581d7e85 100644 --- a/packages/nc-gui/components/cell/TextArea.vue +++ b/packages/nc-gui/components/cell/TextArea.vue @@ -16,6 +16,7 @@ import { const props = defineProps<{ modelValue?: string | number isFocus?: boolean + virtual?: boolean }>() const emits = defineEmits(['update:modelValue']) @@ -65,6 +66,13 @@ onClickOutside(inputWrapperRef, (e) => { isVisible.value = false }) + +const onDblClick = () => { + if (!props.virtual) return + + isVisible.value = true + editEnabled.value = true +}