chatwoot/app/javascript/dashboard/components-next/HelpCenter/Pages/ArticleEditorPage
Sivin Varghese 8faa5a74b1
fix: prevent focus jump to title after new article auto-creates (#14145)
# Pull Request Template

## Description

When creating a help center article, typing a title and navigating into
the content auto-creates the article and switches the route
(`/articles/new` → `/articles/.../edit/:slug`). During this transition,
focus was jumping back to the title, interrupting editing.

This happened because `ArticleEditor` always autofocuses the title. On
route change, the component remounts and re-triggers focus. Now, after
auto-create, focus stays in the body as expected.


Fixes
https://linear.app/chatwoot/issue/CW-6951/issue-with-the-cursor-position-on-the-help-center-article-when

## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)

## How Has This Been Tested?

**Screencast**


https://github.com/user-attachments/assets/dac3f7c6-08c4-4df2-afb0-7731ee76424b



## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [ ] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules
2026-04-27 13:30:51 +05:30
..
ArticleEditor.vue fix: prevent focus jump to title after new article auto-creates (#14145) 2026-04-27 13:30:51 +05:30
ArticleEditorControls.vue chore: Remove older UI (#11720) 2025-07-01 09:43:44 +05:30
ArticleEditorHeader.vue feat: Enhance button interactions (#12738) 2025-11-06 16:24:05 +05:30
ArticleEditorProperties.vue chore: Update styles in settings pages (#11070) 2025-03-18 14:40:02 -07:00