diff --git a/packages/nc-gui-v2/components/cell/TextArea.vue b/packages/nc-gui-v2/components/cell/TextArea.vue index 4552706231..25a6d98b26 100644 --- a/packages/nc-gui-v2/components/cell/TextArea.vue +++ b/packages/nc-gui-v2/components/cell/TextArea.vue @@ -11,26 +11,17 @@ const emits = defineEmits(['update:modelValue']) const editEnabled = inject('editEnabled', false) -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() +}