[PR #453] [MERGED] fix: add hack for root zod validation with hook form #982

Closed
opened 2026-02-26 19:31:19 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/453
Author: @Mythie
Created: 9/28/2023
Status: Merged
Merged: 9/28/2023
Merged by: @Mythie

Base: feat/refreshHead: fix/443-validation-with-multiple-recipients


📝 Commits (1)

  • 2bfc2b0 fix: add hack for root zod validation with hook form

📊 Changes

3 files changed (+29 additions, -16 deletions)

View changed files

📝 packages/ui/primitives/document-flow/add-signers.tsx (+10 -6)
📝 packages/ui/primitives/document-flow/add-signers.types.ts (+13 -8)
📝 packages/ui/primitives/form/form-error-message.tsx (+6 -2)

📄 Description

Adds a hack that handles .root being populated when using Zod and React Hook Form together.

Resolves #443


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/453 **Author:** [@Mythie](https://github.com/Mythie) **Created:** 9/28/2023 **Status:** ✅ Merged **Merged:** 9/28/2023 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `feat/refresh` ← **Head:** `fix/443-validation-with-multiple-recipients` --- ### 📝 Commits (1) - [`2bfc2b0`](https://github.com/documenso/documenso/commit/2bfc2b0c1f243984586ed29988141f176962e491) fix: add hack for root zod validation with hook form ### 📊 Changes **3 files changed** (+29 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `packages/ui/primitives/document-flow/add-signers.tsx` (+10 -6) 📝 `packages/ui/primitives/document-flow/add-signers.types.ts` (+13 -8) 📝 `packages/ui/primitives/form/form-error-message.tsx` (+6 -2) </details> ### 📄 Description Adds a hack that handles `.root` being populated when using Zod and React Hook Form together. Resolves #443 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:31:19 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#982
No description provided.