Skip to content

Commit

Permalink
fix: fix: call invalidate() with async argument
Browse files Browse the repository at this point in the history
  • Loading branch information
foxhound87 committed Jan 14, 2024
1 parent 411b8d7 commit f891f24
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 6.8.1 (master)
- Fix: call `invalidate()` with `async` argument.

# 6.8.0 (master)
- Field `invalidate()` methods arguments updated, introduced `deep`.

Expand Down
2 changes: 1 addition & 1 deletion src/validators/SVK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class SVK implements ValidationPluginInterface {

executeAsyncValidation(field) {
if (field.validationAsyncData.valid === false) {
field.invalidate(field.validationAsyncData.message, true);
field.invalidate(field.validationAsyncData.message, true, true);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/validators/VJF.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class VJF implements ValidationPluginInterface {

executeAsyncValidation(field) {
if (field.validationAsyncData.valid === false) {
field.invalidate(field.validationAsyncData.message, true);
field.invalidate(field.validationAsyncData.message, true, true);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/validators/YUP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class YUP implements ValidationPluginInterface {

executeAsyncValidation(field) {
if (field.validationAsyncData.valid === false) {
field.invalidate(field.validationAsyncData.message, true);
field.invalidate(field.validationAsyncData.message, true, true);
}
}
}
Expand Down

0 comments on commit f891f24

Please sign in to comment.