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

feat: initial form meta #3003

Merged
merged 1 commit into from
Oct 29, 2020
Merged

feat: initial form meta #3003

merged 1 commit into from
Oct 29, 2020

Conversation

logaretm
Copy link
Owner

🔎 Overview

The recent addition of initialErrors limits "show errors on touched" as while the errors are present they won't be displayed, even with validateOnMount enabled. So we need a way to set initial touched and dirty meta flags as well.

This PR adds initialDirty and initialTouched to the <Form /> and useForm() to do just that.

@logaretm logaretm changed the base branch from master to next October 28, 2020 23:38
@logaretm logaretm merged commit f7fd407 into next Oct 29, 2020
@logaretm logaretm deleted the feat/initial-meta branch October 29, 2020 00:58
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.

None yet

1 participant