Frontmatter
| id | 4857 |
| title | Date field should show error when invalid date is entered manually |
| state | Closed |
| labels | bug |
| assignees | [] |
| createdAt | Sep 7, 2023, 11:06 AM |
| updatedAt | Sep 7, 2023, 12:54 PM |
| githubUrl | https://github.com/neomjs/neo/issues/4857 |
| author | r-l-d |
| commentsCount | 3 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Sep 7, 2023, 12:54 PM |
Date field should show error when invalid date is entered manually

tobiu
Sep 7, 2023, 12:53 PM
interesting one. i was not aware that input type date even allows wrong inputs.
e.g. if you type a day of 35 and then use the arrow right key, it will adjust the day to the max value of the given month.
you are right though: typing in 30 and then moving the month to february will keep an invalid input. would be fair to say this is a browser bug.
let's fix this in neo anyways.

tobiu
Sep 7, 2023, 12:54 PM
tobiu closed this issue on Sep 7, 2023, 12:54 PM
Describe the bug When using a date field and manually entering (typing) an invalid date (e.g., 30 February), there is no error shown.
To Reproduce Steps to reproduce the behavior:
Expected behavior The date should be deemed invalid and an error should appear
Screenshots
Desktop (please complete the following information):
Additional context Add any other context about the problem here.