The Open Source DocuSign Alternative.
TypeScript digital-signaturedocument-signingdocusign-alternativee-signatureesignesignaturenext-authnextjsopen-sourcepades-standardpdfpdf-signpdf-signaturepostgresqlprismaself-hostedsigningtypescript
fix: invalid email display bug when recipient suggestions on select (#2198)
Filbert Wijayae39924714a08
diff --git a/apps/remix/app/components/general/envelope-editor/envelope-editor-recipient-form.tsx b/apps/remix/app/components/general/envelope-editor/envelope-editor-recipient-form.tsxindex 18e0d077e..c7fa6db22 100644--- a/apps/remix/app/components/general/envelope-editor/envelope-editor-recipient-form.tsx+++ b/apps/remix/app/components/general/envelope-editor/envelope-editor-recipient-form.tsx@@ -306,8 +306,14 @@ export const EnvelopeEditorRecipientForm = () => {index: number,suggestion: RecipientAutoCompleteOption,) => {- setValue(`signers.${index}.email`, suggestion.email);- setValue(`signers.${index}.name`, suggestion.name || '');+ setValue(`signers.${index}.email`, suggestion.email, {+ shouldValidate: true,+ shouldDirty: true,+ });+ setValue(`signers.${index}.name`, suggestion.name || '', {+ shouldValidate: true,+ shouldDirty: true,+ });};const onDragEnd = useCallback(diff --git a/packages/ui/primitives/document-flow/add-signers.tsx b/packages/ui/primitives/document-flow/add-signers.tsxindex 94c7690b0..0b30cfa58 100644--- a/packages/ui/primitives/document-flow/add-signers.tsx+++ b/packages/ui/primitives/document-flow/add-signers.tsx@@ -350,8 +350,14 @@ export const AddSignersFormPartial = ({index: number,suggestion: RecipientAutoCompleteOption,) => {- setValue(`signers.${index}.email`, suggestion.email);- setValue(`signers.${index}.name`, suggestion.name || '');+ setValue(`signers.${index}.email`, suggestion.email, {+ shouldValidate: true,+ shouldDirty: true,+ });+ setValue(`signers.${index}.name`, suggestion.name || '', {+ shouldValidate: true,+ shouldDirty: true,+ });};const onDragEnd = useCallback(