Skip to content

Commit 8b3f40a

Browse files
Merge pull request #761 from TechnologyEnhancedLearning/Develop/Fixes/TD-5080-Issue-on-'Enter-your-start-date'-screen-not-allowing-to-add-'0'-to-date-field
TD-5080: Issue on 'Enter your start date' screen not allowing to add '0' to date field
2 parents 6a18004 + 828c161 commit 8b3f40a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LearningHub.Nhs.WebUI/Views/Shared/Components/DateInput/Default.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
errorElement.style.visibility = 'hidden';
122122
123123
setTimeout(function () {
124-
if (value < 1 || value > max || !value.match(/^[0-9]*$/)) {
124+
if (value < 0 || value > max || !value.match(/^[0-9]*$/)) {
125125
inputElement.value = inputElement.value.slice(0, -1) + 1;
126126
inputElement.value = inputElement.value.slice(0, -1);
127127
inputElement.setAttribute('aria-invalid', 'true');

0 commit comments

Comments
 (0)