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

Make (re)validateOn overridable per field #247

Merged
merged 4 commits into from
Sep 6, 2024

Conversation

XiNiHa
Copy link
Contributor

@XiNiHa XiNiHa commented Sep 5, 2024

Previously, (re)validateOn could only be set at the top of the form. However, in some cases, it'd be desirable to override this behavior (mostly because some fields already fulfill the validation from the start), so I made one.
I've thought about the implementation of setValues but left it as-is for now.

If the Solid implementation gets approved, I'll also implement it for others. Done!

Copy link

netlify bot commented Sep 5, 2024

Deploy Preview for modularforms failed.

Name Link
🔨 Latest commit d6d77d3
🔍 Latest deploy log https://app.netlify.com/sites/modularforms/deploys/66d95d75feebb2000802b979

@fabian-hiller
Copy link
Owner

Thanks for the PR! Your implementation looks good at first glance. I plan to release a new version in the next few days and include this change if I don't find any problems.

@fabian-hiller fabian-hiller self-assigned this Sep 5, 2024
@fabian-hiller fabian-hiller added the enhancement New feature or request label Sep 5, 2024
@XiNiHa XiNiHa force-pushed the feat/validateon-per-field branch from d6d77d3 to 1bd5945 Compare September 6, 2024 05:12
@fabian-hiller fabian-hiller merged commit 222293a into fabian-hiller:main Sep 6, 2024
@fabian-hiller
Copy link
Owner

A new version is available

@XiNiHa XiNiHa deleted the feat/validateon-per-field branch September 7, 2024 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants