chatwoot/app/javascript/dashboard/components-next/HelpCenter/Pages
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
..
ArticleEditorPage fix: prevent focus jump to title after new article auto-creates (#14145) 2026-04-27 13:30:51 +05:30
ArticlePage feat: Add bulk actions for help center articles (translate, status change, delete) (#14137) 2026-04-24 09:13:43 -07:00
CategoryPage feat(help-center): enable drag-and-drop category reordering (#13706) 2026-03-05 12:53:38 +05:30
LocalePage feat: Add draft status for help center locales (#13768) 2026-03-17 12:45:54 +04:00
PortalSettingsPage feat: Allow detaching help center widget (#12459) 2025-09-17 22:27:50 +05:30