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

keepTouchedOnReinitialize would be useful #458

Open
sergiucaraian opened this issue Apr 22, 2019 · 2 comments
Open

keepTouchedOnReinitialize would be useful #458

sergiucaraian opened this issue Apr 22, 2019 · 2 comments

Comments

@sergiucaraian
Copy link

Are you submitting a bug report or a feature request?

Feature request

What is the current behavior?

When the form reinitializes the meta.touched property is reset.

What is the expected behavior?

It would be really helpful if there would be a keepTouchedOnReinitialize property, similar to keepDirtyOnReinitialize. For example, I don't display field validation errors unless the field has been touched. However, a context change can trigger a rerender of RFF which resets the touched status, causing the validation error to disapear until the field is touched again.

@danielnixon
Copy link
Contributor

@erikras would you be open to a PR for this?

@erikras
Copy link
Member

erikras commented Oct 13, 2020

That's very interesting. I'm always surprised when people come up with feature ideas that I haven't heard before. Seems like it wouldn't be too difficult to implement. I don't have a lot of time lately to devote to this library, but a PR would be welcome.

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

No branches or pull requests

3 participants