Skip to content

Fix/command-form#1853

Merged
einari merged 3 commits intomainfrom
fix/command-form
Mar 1, 2026
Merged

Fix/command-form#1853
einari merged 3 commits intomainfrom
fix/command-form

Conversation

@einari
Copy link
Contributor

@einari einari commented Mar 1, 2026

Fixed

  • Refactoring isValid logic for CommandForm in @cratis/arc.react to make it more consistent. It fixes cases where the isValid was becoming true after a single field becoming valid while the rest weren't.

einari added 2 commits March 1, 2026 06:46
- Simplified the validation logic in CommandForm to ensure isValid is driven exclusively by silentValidationResult.
- Removed unnecessary field validity tracking and user interaction markers.
- Updated server validation logic to trigger only when silent validation has completed successfully.
- Enhanced tests to cover scenarios for validateOn='blur' and validateOn='change', ensuring accurate isValid state tracking.
- Improved handling of custom validation errors and field change callbacks.
- Added new tests for checking context isValid with various validation settings and user interactions.
@einari einari added the patch label Mar 1, 2026
@einari einari merged commit 4e389b0 into main Mar 1, 2026
7 checks passed
@einari einari deleted the fix/command-form branch March 1, 2026 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant