Skip to content

Commit

Permalink
Merge pull request #229 from Elbarae1921/master
Browse files Browse the repository at this point in the history
fix: should wait for button click when both asSingle and showFooter are true
  • Loading branch information
onesine authored Aug 13, 2024
2 parents a1a3b52 + af5fe0c commit 807982b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Calendar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ const Calendar: React.FC<Props> = ({
newStart = fullDay;
if (asSingle) {
newEnd = fullDay;
chosePeriod(fullDay, fullDay);
if (!showFooter) {
chosePeriod(fullDay, fullDay);
}
}
} else {
if (period.start && !period.end) {
Expand Down

0 comments on commit 807982b

Please sign in to comment.