fix: long text edit focus fix: ai longtext editor

This commit is contained in:
DarkPhoenix2704
2025-02-17 13:11:03 +00:00
parent a509231e39
commit fa59b36db8
5 changed files with 63 additions and 10 deletions

View File

@@ -61,6 +61,8 @@ const isAiEdited = useVModel(props, 'isAiEdited', emits)
const isExpandedFormOpen = inject(IsExpandedFormOpenInj, ref(false))!
const textAreaRef = ref<HTMLTextAreaElement>()
const position = ref<
| {
top: number
@@ -351,8 +353,6 @@ watch(
},
)
const textAreaRef = ref<HTMLTextAreaElement>()
watch(textAreaRef, (el) => {
if (el && !isExpandedFormOpen.value && !isEditColumn.value && !isForm.value) {
el.focus()