diff --git a/apps/portal/src/components/questions/CreateListDialog.tsx b/apps/portal/src/components/questions/CreateListDialog.tsx index fcd22395..c02e06bd 100644 --- a/apps/portal/src/components/questions/CreateListDialog.tsx +++ b/apps/portal/src/components/questions/CreateListDialog.tsx @@ -21,7 +21,7 @@ export default function CreateListDialog({ const { register: formRegister, handleSubmit, - formState: { isSubmitting }, + formState: { isSubmitting, isDirty }, reset, } = useForm(); const register = useFormRegister(formRegister); @@ -51,6 +51,7 @@ export default function CreateListDialog({ autoComplete="off" label="Name" placeholder="List name" + required={true} type="text" /> @@ -62,6 +63,7 @@ export default function CreateListDialog({ onClick={handleDialogCancel} />