Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(web): delay TitleEditor autofocus to avoid Dialog animation conflict
Naiyuan Qing946b4a277e91
diff --git a/apps/web/components/common/title-editor.tsx b/apps/web/components/common/title-editor.tsxindex 14837b27c2..05b99ca642 100644--- a/apps/web/components/common/title-editor.tsx+++ b/apps/web/components/common/title-editor.tsx@@ -117,11 +117,13 @@ const TitleEditor = forwardRef<TitleEditorRef, TitleEditorProps>(},});- // Auto-focus after mount+ // Auto-focus after mount — delay to wait for Dialog open animationuseEffect(() => {if (autoFocus && editor) {- // Move cursor to end- editor.commands.focus("end");+ const timer = setTimeout(() => {+ editor.commands.focus("end");+ }, 50);+ return () => clearTimeout(timer);}}, [autoFocus, editor]);