diff --git a/packages/formbuilder/lib/validations.ts b/packages/formbuilder/lib/validations.ts index 1c698eb..1148010 100644 --- a/packages/formbuilder/lib/validations.ts +++ b/packages/formbuilder/lib/validations.ts @@ -274,7 +274,7 @@ export function validateField( } validation = defaultNumberValidation.refine( - (number) => !fieldConfig.required || Boolean(number), + (number) => !fieldConfig.required || !Number.isNaN(number), requiredError, ); diff --git a/packages/formbuilder/package.json b/packages/formbuilder/package.json index e959380..72ce56d 100644 --- a/packages/formbuilder/package.json +++ b/packages/formbuilder/package.json @@ -1,6 +1,6 @@ { "name": "@continha/formbuilder", - "version": "1.6.9", + "version": "1.6.10", "private": false, "main": "dist/index.js", "module": "dist/index.mjs", diff --git a/packages/ui/package.json b/packages/ui/package.json index a805ef8..2aee138 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@continha/ui", - "version": "1.14.23", + "version": "1.14.24", "private": false, "main": "dist/index.js", "module": "dist/esm/index.js",