Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: validation mode doesnt not reset when reset is called on form state #302

Merged
merged 2 commits into from
Feb 23, 2025

Conversation

Mayb3Nots
Copy link
Contributor

When validate is called and our validation mode is alwaysAfterFirstValidation we will set the mode permanently to always internally.

When reset is called on a form state key the all subsequent text field validation gets called and all the will fail the validation since the field has been reset. This is not expected behavior. The validation mode should also be reset when reset is called so everything is truly reset.

@Mayb3Nots Mayb3Nots changed the title fix: validation fix: validation doesnt not reset when reset is called on form Feb 22, 2025
@Mayb3Nots Mayb3Nots changed the title fix: validation doesnt not reset when reset is called on form fix: validation doesnt not reset when reset is called on form state Feb 22, 2025
@Mayb3Nots Mayb3Nots changed the title fix: validation doesnt not reset when reset is called on form state fix: validation mode doesnt not reset when reset is called on form state Feb 22, 2025
Copy link
Owner

@nank1ro nank1ro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nank1ro nank1ro merged commit 62d1230 into nank1ro:main Feb 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants