From 07dba8ad27460f46ae09437dd87377649c8067d6 Mon Sep 17 00:00:00 2001 From: Pawel Korczak Date: Tue, 11 Jun 2024 08:50:28 +0200 Subject: [PATCH] fix: send decimal value if is wrong format --- .../renderers/interactions/TextEntryInteraction.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/qtiCommonRenderer/renderers/interactions/TextEntryInteraction.js b/src/qtiCommonRenderer/renderers/interactions/TextEntryInteraction.js index cf478d6c..eec9b342 100644 --- a/src/qtiCommonRenderer/renderers/interactions/TextEntryInteraction.js +++ b/src/qtiCommonRenderer/renderers/interactions/TextEntryInteraction.js @@ -103,7 +103,6 @@ function validateDecimalInput($input) { const regex = new RegExp(regexPattern); if (!regex.test(value)) { - $input.addClass('invalid'); $input.addClass('error'); const decimalError = thousandsSeparator ? __( @@ -116,7 +115,6 @@ function validateDecimalInput($input) { : __('Invalid value, use %s %s for decimal point.', decimalSeparator, decimalSeparatorName); showTooltip($input, 'error', decimalError); } else { - $input.removeClass('invalid'); $input.removeClass('error'); hideTooltip($input); }