-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix bug in old datefield, add leading zeros to new date field mm and dd #8880
Conversation
Oops! Looks like you forgot to update the changelog. When updating CHANGELOG.md, please consider the following:
|
@@ -107,9 +107,6 @@ export const DateField = ({ | |||
const updatedValue = { ...date, [segmentType]: val } | |||
setDate(updatedValue) | |||
|
|||
if (yyyy === '' && mm === '' && dd === '') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was causing a bug on both V1 and V2: when the user e.g. selects 'day' field, then presses backspace, and tries to enter a character, it will not register the first inputted character, only the second one.
Your environment is deployed to https://ocrvs-8830-b.opencrvs.dev |
E2e tests passed on rerun here: https://github.com/opencrvs/e2e/actions/runs/13718077049/job/38368403993 |
Add leading zeroes to month and date field if missing. Also fix bug on V1 and V2 input fields, see comment below.
Screen.Recording.2025-03-07.at.11.35.33.mov