mirror of
https://github.com/documenso/documenso.git
synced 2026-07-11 21:45:18 +10:00
400b6a24f1
## Description This MR improves the real-time validation experience on the signup page. Currently, both the email and password fields validate only on blur, causing users to continue seeing error messages even after correcting their input until they click outside the field. This update switches the React Hook Form configuration from mode: 'onBlur' to mode: 'onChange', ensuring validations update immediately as the user types. This results in a smoother and less confusing signup experience. ## Related Issue Fixes #2200 ## Changes Made - Updated React Hook Form configuration in the signup form from: - mode: 'onBlur' ➜ mode: 'onChange' - Ensures real-time validation for email and password fields - No schema or logic changes — only validation trigger updated ## Testing Performed - Manually tested the signup page for: - Real-time password rule updates - Real-time email validation feedback - Error disappearance immediately after correcting input ## Checklist - [x] I have tested these changes locally and they work as expected. - [ ] I have added/updated tests that prove the effectiveness of these changes. - [x] I have updated the documentation to reflect these changes, if applicable. - [x] I have followed the project's coding style guidelines. - [x] I have addressed the code review feedback from the previous submission, if applicable. ## Additional Notes This is a small UX-focused improvement; the validation schema remains unchanged. Co-authored-by: Catalin Pit <catalinpit@gmail.com>
@documenso/remix
The main Documenso web application. Built with React Router v7 and served by a Hono server.
This package is part of the Documenso monorepo and is not meant to be run standalone. Use the root scripts instead.
- Local development: see the root README and the Local Development docs.
- Self-hosting and deployment: see the Self-Hosting docs.
- Architecture overview: see ARCHITECTURE.md.
# From the monorepo root
npm run dev