Skip to content

Commit

Permalink
fix(date-picker): date picker does not work in a reactive form
Browse files Browse the repository at this point in the history
  • Loading branch information
Venkatesh Rajendran committed Jan 29, 2024
1 parent 702542d commit 8dccdcf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class DateIOService {
}

getDateValueFromDateString(date: string): Date {
if (!date) {
if (!date || typeof date !== 'string') {
return null;
}
const dateParts: string[] = date.match(USER_INPUT_REGEX);
Expand Down

0 comments on commit 8dccdcf

Please sign in to comment.