Skip to content

Commit 807982b

Browse files
authored
Merge pull request #229 from Elbarae1921/master
fix: should wait for button click when both asSingle and showFooter are true
2 parents a1a3b52 + af5fe0c commit 807982b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/Calendar/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ const Calendar: React.FC<Props> = ({
148148
newStart = fullDay;
149149
if (asSingle) {
150150
newEnd = fullDay;
151-
chosePeriod(fullDay, fullDay);
151+
if (!showFooter) {
152+
chosePeriod(fullDay, fullDay);
153+
}
152154
}
153155
} else {
154156
if (period.start && !period.end) {

0 commit comments

Comments
 (0)