From faca1e9f68fa5d74050f4927c5400ece0797b7e0 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 1 Jun 2023 23:17:56 +0530 Subject: [PATCH] fix: access reactive variable value using `value` prop Signed-off-by: Pranav C --- packages/nc-gui/components/cell/Currency.vue | 2 +- packages/nc-gui/components/cell/Decimal.vue | 2 +- packages/nc-gui/components/cell/Duration.vue | 2 +- packages/nc-gui/components/cell/Email.vue | 2 +- packages/nc-gui/components/cell/Float.vue | 2 +- packages/nc-gui/components/cell/Integer.vue | 2 +- packages/nc-gui/components/cell/Percent.vue | 2 +- packages/nc-gui/components/cell/Text.vue | 2 +- packages/nc-gui/components/cell/TextArea.vue | 2 +- packages/nc-gui/components/cell/Url.vue | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/nc-gui/components/cell/Currency.vue b/packages/nc-gui/components/cell/Currency.vue index 04071a9630..09c605ead3 100644 --- a/packages/nc-gui/components/cell/Currency.vue +++ b/packages/nc-gui/components/cell/Currency.vue @@ -55,7 +55,7 @@ const currency = computed(() => { const isExpandedFormOpen = inject(IsExpandedFormOpenInj, ref(false))! -const focus: VNodeRef = (el) => !isExpandedFormOpen && (el as HTMLInputElement)?.focus() +const focus: VNodeRef = (el) => !isExpandedFormOpen.value && (el as HTMLInputElement)?.focus() const submitCurrency = () => { if (lastSaved.value !== vModel.value) { diff --git a/packages/nc-gui/components/cell/Decimal.vue b/packages/nc-gui/components/cell/Decimal.vue index 1034b5ee1a..11392f6d08 100644 --- a/packages/nc-gui/components/cell/Decimal.vue +++ b/packages/nc-gui/components/cell/Decimal.vue @@ -38,7 +38,7 @@ const vModel = computed({ const isExpandedFormOpen = inject(IsExpandedFormOpenInj, ref(false))! -const focus: VNodeRef = (el) => !isExpandedFormOpen && (el as HTMLInputElement)?.focus() +const focus: VNodeRef = (el) => !isExpandedFormOpen.value && (el as HTMLInputElement)?.focus()