From af5fe0c5c579f34899a7801f7a36c83108921409 Mon Sep 17 00:00:00 2001 From: Elbarae Date: Tue, 30 Jan 2024 18:09:25 +0100 Subject: [PATCH] fix: should wait for button click when both asSingle and showFooter are true --- src/components/Calendar/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Calendar/index.tsx b/src/components/Calendar/index.tsx index 4a37437..7c14b28 100644 --- a/src/components/Calendar/index.tsx +++ b/src/components/Calendar/index.tsx @@ -149,7 +149,9 @@ const Calendar: React.FC = ({ newStart = fullDay; if (asSingle) { newEnd = fullDay; - chosePeriod(fullDay, fullDay); + if (!showFooter) { + chosePeriod(fullDay, fullDay); + } } } else { if (period.start && !period.end) {