From f640879b7587d510d6e8a9146ed5c61b3545af65 Mon Sep 17 00:00:00 2001 From: Brian Salazar Date: Tue, 22 Oct 2024 10:32:50 -0600 Subject: [PATCH] [SWAT-4099][Form Validation Open Source] Fix in isFieldValid (#16) * fix to send the correct value * 1.0.2 --------- Co-authored-by: Brian Salazar --- package-lock.json | 4 ++-- package.json | 2 +- src/index.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 27f24f0..9170863 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@ltvco/form-validation", - "version": "1.0.1", + "version": "1.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@ltvco/form-validation", - "version": "1.0.1", + "version": "1.0.2", "license": "MIT", "devDependencies": { "del-cli": "^5.1.0", diff --git a/package.json b/package.json index 1f2eb42..93d2dbe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ltvco/form-validation", - "version": "1.0.1", + "version": "1.0.2", "description": "Library to handle form validation, similar to jQuery Validation, but without any dependencies.", "types": "./dist/types/index.d.ts", "main": "./dist/index.js", diff --git a/src/index.ts b/src/index.ts index 50bb4ed..99df7e5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -608,7 +608,7 @@ export class Validation implements FormValidation { if (!this.fieldsToValidate.includes(field)) throw new Error(`Field "${field.name}" is not being validated`); - return !!this.validateField(field, silently); + return !this.validateField(field, silently); } /**