From 1eec2cd7c8a3d3aa02ae67bebaaa79eea02224f0 Mon Sep 17 00:00:00 2001 From: James Pasta Date: Thu, 23 Jan 2025 15:46:06 -0800 Subject: [PATCH] bugfix/AB#27804-FixNumericValidationOnScroesheet --- .../Shared/Components/AssessmentScoresWidget/Default.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Views/Shared/Components/AssessmentScoresWidget/Default.js b/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Views/Shared/Components/AssessmentScoresWidget/Default.js index fb16b8266..510161568 100644 --- a/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Views/Shared/Components/AssessmentScoresWidget/Default.js +++ b/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Views/Shared/Components/AssessmentScoresWidget/Default.js @@ -216,10 +216,7 @@ function handleInputChange(questionId, inputFieldPrefix) { if (assessmentAnswersArr[x].questionType === 1) { let inputNumberField = document.getElementById('answer-number-' + assessmentAnswersArr[x].questionId); let numberErrorMessage = document.getElementById('error-message-' + assessmentAnswersArr[x].questionId); - - if (inputNumberField.required) { - assessmentAnswersArr[x].isValid = validateNumericField(inputNumberField, numberErrorMessage); - } + assessmentAnswersArr[x].isValid = validateNumericField(inputNumberField, numberErrorMessage); } else if (assessmentAnswersArr[x].questionType === 2) { let inputTextField = document.getElementById('answer-text-' + assessmentAnswersArr[x].questionId); let textErrorMessage = document.getElementById('error-message-' + assessmentAnswersArr[x].questionId);