diff --git a/packages/nc-gui-v2/components/cell/Decimal.vue b/packages/nc-gui-v2/components/cell/Decimal.vue index b2f15151a6..77b0a2f7a3 100644 --- a/packages/nc-gui-v2/components/cell/Decimal.vue +++ b/packages/nc-gui-v2/components/cell/Decimal.vue @@ -3,7 +3,7 @@ import { computed, inject, onMounted, ref } from '#imports' import { EditModeInj } from '~/context' interface Props { - modelValue: number | null + modelValue: number | null | string } interface Emits { @@ -20,15 +20,13 @@ const root = ref() const vModel = useVModel(props, 'modelValue', emits) -onMounted(() => { - root.value?.focus() -}) +const focus = (el: HTMLInputElement) => el?.focus()