diff --git a/apps/web/app/office/components/new-task-dialog.tsx b/apps/web/app/office/components/new-task-dialog.tsx index b57bd4c3f9..8f2f5594ce 100644 --- a/apps/web/app/office/components/new-task-dialog.tsx +++ b/apps/web/app/office/components/new-task-dialog.tsx @@ -18,7 +18,7 @@ import { EMPTY_STAGES, type StagesDraft, } from "./new-task-stages"; -import { clampTaskTitleInput } from "@/lib/task-title"; +import { useTaskTitleSelectionRestore } from "@/hooks/use-task-title-selection-restore"; import { useTranslation } from "react-i18next"; function buildMetadata(draft: IssueDraft): Record | undefined { @@ -131,6 +131,7 @@ function NewIssueDialogBody({ onCreate: () => void; }) { const { t } = useTranslation(); + const { inputRef, clampChange } = useTaskTitleSelectionRestore(draft.title); return ( <> @@ -150,9 +151,10 @@ function NewIssueDialogBody({