From a8c8b38f51f0f6c4e92792d8a2d3ef0cc73f43e0 Mon Sep 17 00:00:00 2001
From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
Date: Mon, 13 Apr 2026 23:23:25 +0530
Subject: [PATCH] fix: create article on title blur instead of debounce
(#14037)
---
.../Pages/ArticleEditorPage/ArticleEditor.vue | 27 ++++++++++++-------
.../pages/PortalsArticlesNewPage.vue | 4 +--
2 files changed, 19 insertions(+), 12 deletions(-)
diff --git a/app/javascript/dashboard/components-next/HelpCenter/Pages/ArticleEditorPage/ArticleEditor.vue b/app/javascript/dashboard/components-next/HelpCenter/Pages/ArticleEditorPage/ArticleEditor.vue
index 4c4d95f0c..bdc6a56cb 100644
--- a/app/javascript/dashboard/components-next/HelpCenter/Pages/ArticleEditorPage/ArticleEditor.vue
+++ b/app/javascript/dashboard/components-next/HelpCenter/Pages/ArticleEditorPage/ArticleEditor.vue
@@ -1,5 +1,5 @@
@@ -122,6 +128,7 @@ const previewArticle = () => {
custom-text-area-wrapper-class="border-0 !bg-transparent dark:!bg-transparent !py-0 !px-0"
placeholder="Title"
autofocus
+ @blur="handleCreateArticle"
/>
{
if (title) article.value.title = title;
if (content) article.value.content = content;
- if (!article.value.title) return;
+ if (!article.value.title || isUpdating.value) return;
isUpdating.value = true;
try {
@@ -86,7 +86,7 @@ const goBackToArticles = () => {
:article="article"
:is-updating="isUpdating"
:is-saved="isSaved"
- @save-article="createNewArticle"
+ @create-article="createNewArticle"
@go-back="goBackToArticles"
@set-author="setAuthorId"
@set-category="setCategoryId"