-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Describe the bug
I edit the date using the keyboard. For example, if I manually adjust the month and press enter, the year changes from 2025 to 0251.
My Config:
{
"label": "Date / Time",
"format": "dd-MM-yyyy hh:mm a",
"tableView": false,
"datePicker": {
"disableWeekends": false,
"disableWeekdays": false
},
"enableMinDateInput": false,
"enableMaxDateInput": false,
"validateWhenHidden": false,
"key": "dateTime",
"type": "datetime",
"input": true,
"widget": {
"type": "calendar",
"displayInTimezone": "viewer",
"locale": "en",
"useLocaleSettings": false,
"allowInput": true,
"mode": "single",
"enableTime": true,
"noCalendar": false,
"format": "dd-MM-yyyy hh:mm a",
"hourIncrement": 1,
"minuteIncrement": 1,
"time_24hr": false,
"minDate": null,
"disableWeekends": false,
"disableWeekdays": false,
"maxDate": null
}
},
Version/Branch
What release version or branch are you experiencing the behavior
4.14.1 - 5.2.2
To Reproduce
Steps to reproduce the behavior:
- Create form
- Add component DateTime with Format dd-MM-yyyy hh:mm a
- Select a Date with the Calender
- Use the Keyboard to change the Value and press enter
- Error: Year gets changed. For example 2025 to 0251
Expected behavior
If the date is valid, it should be displayed correctly in the field and in submission.
Screenshots
Inital Value
Value after change with enter
