fix: invalid email display bug when recipient suggestions on select (#2198)

This commit is contained in:
Filbert Wijaya
2025-12-03 08:10:38 +07:00
committed by GitHub
parent c9604fee64
commit e39924714a
2 changed files with 16 additions and 4 deletions
@@ -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(