jaredpalmer / jaredpalmer/formik
How to reset touched to false
- Dominant language
- TypeScript
- Stars
- 34.3k
- Forks
- 2.8k
- PR merge metrics
- No merged PRs in 30d
Description
## Goal
I need form to only show the first error or at least the first input with an error should be the only error to be displayed. Once the user types the corrected value into the field that meets the fields requirements all touched fields must be set to false.
## Question
Once a user hits submit all Fields touched values turn true. How do I reset all Fields touched values to false?
Software | Version(s)
-- | --
Formik | latest
React | latest
Contributor guide
Research direction
No file, test, or entry point is named. Start by reviewing Formik's touched state and submit behavior in the React form, then determine how corrected fields should affect the displayed errors. Done would mean the requested touched-state reset behavior is defined and verified for the described submission flow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100