From 8416a564705cba505537235be31bc90336cb5134 Mon Sep 17 00:00:00 2001 From: Oliver Tacke Date: Sat, 6 Jan 2024 17:40:56 +0100 Subject: [PATCH] HFP-3852 Fix number field validation --- scripts/h5peditor-number.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/h5peditor-number.js b/scripts/h5peditor-number.js index 6663457c..43e6b56d 100644 --- a/scripts/h5peditor-number.js +++ b/scripts/h5peditor-number.js @@ -109,7 +109,7 @@ ns.Number.prototype.validate = function () { if (that.field.optional === true) { // Field is optional and does not have a value, nothing more to validate this.$input.removeClass('error'); - return; + return true; } // Field must have a value