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()