Skip to content

Commit 828c161

Browse files
committed
TD-5080: Issue on 'Enter your start date' screen not allowing to add '0' to date field
1 parent 6a18004 commit 828c161

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)