diff --git a/apps/app/components/issues/form.tsx b/apps/app/components/issues/form.tsx index 35cff8472..800630c15 100644 --- a/apps/app/components/issues/form.tsx +++ b/apps/app/components/issues/form.tsx @@ -94,6 +94,7 @@ export const IssueForm: FC = ({ reset, watch, control, + getValues, setValue, setFocus, } = useForm({ @@ -272,7 +273,11 @@ export const IssueForm: FC = ({ /> setGptAssistantModal(false)} + handleClose={() => { + setGptAssistantModal(false); + // this is done so that the title do not reset after gpt popover closed + reset(getValues()); + }} inset="top-2 left-0" content="" htmlContent={watch("description_html")}