Altinn / Altinn/app-frontend-react

DateTime in the data model cases crash on wrong input

Open
#4,180 0 comments 0 reactions 0 assignees View on GitHub
kind/bug squad/utforming
Dominant language
TypeScript
Stars
21
Forks
33
Avg merge
6d 23h
Merged PRs (30d)
3

Description

### Description of the bug

When setting the date manually to a date that would not be possible like "32.13.2026" the validation step cases the app to crash out.

### Steps To Reproduce

1. Go to an app with a Datepicker, have the dataModel binding be a DateTime type.
2. Write a fake date that would not work
3. Click outside to blur the field

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the Datepicker's DateTime dataModel binding and reproduce the crash by entering "32.13.2026" before blurring the field. Trace the validation path for impossible dates and add or update coverage for this input. Done means invalid manual dates are handled as validation errors without crashing the app.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.