From f891f24a127956023a7bdb9969e50cff10dfc8ba Mon Sep 17 00:00:00 2001 From: foxhound87 Date: Sun, 14 Jan 2024 11:43:13 +0100 Subject: [PATCH] fix: fix: call `invalidate()` with `async` argument --- CHANGELOG.md | 3 +++ src/validators/SVK.ts | 2 +- src/validators/VJF.ts | 2 +- src/validators/YUP.ts | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d1714101..e0513c13 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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`. diff --git a/src/validators/SVK.ts b/src/validators/SVK.ts index cb565acf..26fa8954 100755 --- a/src/validators/SVK.ts +++ b/src/validators/SVK.ts @@ -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); } } diff --git a/src/validators/VJF.ts b/src/validators/VJF.ts index 74980e9d..9997e3bb 100755 --- a/src/validators/VJF.ts +++ b/src/validators/VJF.ts @@ -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); } } diff --git a/src/validators/YUP.ts b/src/validators/YUP.ts index 48547984..23f8faf0 100755 --- a/src/validators/YUP.ts +++ b/src/validators/YUP.ts @@ -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); } } }