Skip to content

Commit af5fe0c

Browse files
committed
fix: should wait for button click when both asSingle and showFooter are true
1 parent bf063fe commit af5fe0c

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
@@ -149,7 +149,9 @@ const Calendar: React.FC<Props> = ({
149149
newStart = fullDay;
150150
if (asSingle) {
151151
newEnd = fullDay;
152-
chosePeriod(fullDay, fullDay);
152+
if (!showFooter) {
153+
chosePeriod(fullDay, fullDay);
154+
}
153155
}
154156
} else {
155157
if (period.start && !period.end) {

0 commit comments

Comments
 (0)