final-form / final-form/react-final-form

keepTouchedOnReinitialize would be useful

Open
#458 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.4k
Forks
497
PR merge metrics
No merged PRs in 30d

Description

### 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.