Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix: review comments

Ramesh Mane1b4f85cb0b9e
diff --git a/packages/nc-gui/components/cell/Text/Editor.vue b/packages/nc-gui/components/cell/Text/Editor.vue
index a4f25572c5..217780103b 100644
--- a/packages/nc-gui/components/cell/Text/Editor.vue
+++ b/packages/nc-gui/components/cell/Text/Editor.vue
@@ -26,7 +26,7 @@ const inputRef = ref<HTMLInputElement | HTMLTextAreaElement>()
const focus: VNodeRef = (el) => {
if (!isExpandedFormOpen.value && !isEditColumn.value && !isForm.value) {
- inputRef.value = (el?.$el as HTMLTextAreaElement) || (el as HTMLInputElement)
+ inputRef.value = el as HTMLInputElement
inputRef.value?.focus()
}
}
diff --git a/packages/nc-gui/components/nc/AutoSizeTextarea.vue b/packages/nc-gui/components/nc/AutoSizeTextarea.vue
index 6b4be45e55..1be2581a5b 100644
--- a/packages/nc-gui/components/nc/AutoSizeTextarea.vue
+++ b/packages/nc-gui/components/nc/AutoSizeTextarea.vue
@@ -51,15 +51,9 @@ watch(modelValue, (val) => {
// βœ… expose textarea DOM element directly
defineExpose({
$el: textarea,
- focus: () => {
- textarea.value?.focus()
- },
- blur: () => {
- textarea.value?.blur()
- },
- select: () => {
- textarea.value?.select()
- },
+ focus: () => textarea.value?.focus(),
+ blur: () => textarea.value?.blur(),
+ select: () => textarea.value?.select(),
})
</script>