Skip to content

Commit

Permalink
fix: allow the end date to be the same as the start date using input …
Browse files Browse the repository at this point in the history
…typing (#6919)
  • Loading branch information
KumJungMin committed Jul 25, 2024
1 parent adbd050 commit 97b370b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/calendar/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export const Calendar = React.memo(
}
} else if (value.every((v) => isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false) && isSelectableTime(v))) {
if (isRangeSelection()) {
isValid = value.length > 1 && value[1] > value[0] ? true : false;
isValid = value.length > 1 && value[1] >= value[0];
}
}

Expand Down

0 comments on commit 97b370b

Please sign in to comment.