Skip to content

Commit

Permalink
fix(fe: FSADT1-1488): revalidate the date value properly (#1188)
Browse files Browse the repository at this point in the history
fix: validate date of birth on revalidate event
  • Loading branch information
fterra-encora authored Oct 1, 2024
1 parent 162cf23 commit 02fa1fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/components/forms/DateInputComponent/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,9 @@ revalidateBus.on((keys: string[] | undefined) => {
validation[DatePart.year] = validatePart(DatePart.year);
validation[DatePart.month] = validatePart(DatePart.month);
validation[DatePart.day] = validatePart(DatePart.day);
validateFullDate(selectedValue.value);
if (areAllPartsValid()) {
validateFullDate(selectedValue.value);
}
}
});
Expand Down

0 comments on commit 02fa1fb

Please sign in to comment.