Skip to content

Commit

Permalink
Merge pull request #87 from aldiand/range-issue-patch
Browse files Browse the repository at this point in the history
fix: selected range issue
  • Loading branch information
farhoudshapouran authored Jun 3, 2024
2 parents e7d9364 + 50979b1 commit 44199ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/DaySelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const DaySelector = () => {
let isSelected = false;

if (mode === 'range') {
rightCrop = false;
const selectedStartDay = areDatesOnSameDay(day.date, startDate);
const selectedEndDay = areDatesOnSameDay(day.date, endDate);
isSelected = selectedStartDay || selectedEndDay;
Expand Down

0 comments on commit 44199ca

Please sign in to comment.