From c4dc2ac1632197406c6438323520f675d751a802 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Fri, 10 May 2024 16:35:52 +0530 Subject: [PATCH] fix(nc-gui): form desciption update issue (#8454) Co-authored-by: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> --- packages/nc-gui/components/cell/RichText.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/nc-gui/components/cell/RichText.vue b/packages/nc-gui/components/cell/RichText.vue index 58ad40968c..1c6e2f4f7d 100644 --- a/packages/nc-gui/components/cell/RichText.vue +++ b/packages/nc-gui/components/cell/RichText.vue @@ -220,14 +220,14 @@ if (isFormField.value) { } onMounted(() => { - if (fullMode.value) { + if (fullMode.value || isFormField.value || isForm.value) { setEditorContent(vModel.value, true) - if ((isForm.value && !isSurveyForm.value) || isFormField.value) return - - nextTick(() => { - editor.value?.chain().focus().run() - }) + if (fullMode.value || isSurveyForm.value) { + nextTick(() => { + editor.value?.chain().focus().run() + }) + } } })