diff --git a/packages/nc-gui-v2/components/cell/Text.vue b/packages/nc-gui-v2/components/cell/Text.vue index 65fac3f5bc..653842a105 100644 --- a/packages/nc-gui-v2/components/cell/Text.vue +++ b/packages/nc-gui-v2/components/cell/Text.vue @@ -15,20 +15,13 @@ const root = ref() const vModel = useVModel(props, 'modelValue', emits) -onMounted(() => { - root.value?.focus() -}) - -watch( - () => root.value, - (el) => { - el?.focus() - }, -) +const onSetRef = (el: HTMLInputElement) => { + el.focus() +}