forked from jaredpalmer/formik
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate
setFieldTouched
with high priority. (jaredpalmer#2882)
Yet another follow up fix for the jaredpalmer#2841. In 2.2.0 `validateFormWithLowPriority` was immideatly called by `unstable_runWithPriority` https://github.com/formium/formik/blob/7279751518089fac6a446b8a3b9c46035b65ea23/packages/formik/src/Formik.tsx#L329-L332 But 2.2.1 it was delayed, so when we validate values only on blur, users could see the error for few milliseconds. Here is the repro jaredpalmer#2841 (comment)
- Loading branch information
1 parent
ff758f9
commit 199e77a
Showing
6 changed files
with
86 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'formik': patch | ||
'formik-native': patch | ||
--- | ||
|
||
Validate `setFieldTouched` with high priority |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters