Skip to content

Commit

Permalink
chore(isct-98): fix datepicker v1 in case update min or max date
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyKIron committed Nov 2, 2023
1 parent 3bbc308 commit 7ebc0dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ export class DatepickerComponent implements OnInit, OnDestroy, OnChanges, AfterV
new Date(dateA.getFullYear(), dateA.getMonth()).getTime() === new Date(dateB.getFullYear(), dateB.getMonth()).getTime()
);
}
} else if (isDate(dateA) || isDate(dateB)) {
} else if ((!isDate(dateA) && isDate(dateB)) || (isDate(dateA) && !isDate(dateB))) {
return false;
} else {
return true;
Expand Down

0 comments on commit 7ebc0dd

Please sign in to comment.