💄 Calendar close modal on click when opened (#1396)

This commit is contained in:
Tagaishi
2023-09-15 18:15:25 +02:00
committed by GitHub
parent 9b8263b8ec
commit 47e46a3a30

View File

@@ -65,7 +65,7 @@ export const CalendarDay = ({ date, medias, size }: CalendarDayProps) => {
>
<Popover.Target>
<Container
onClick={medias.totalCount > 0 ? open : undefined}
onClick={medias.totalCount > 0 && !opened ? open : close}
h="100%"
w="100%"
sx={{