💄 Calendar close modal on click when opened (#1396)
This commit is contained in:
@@ -65,7 +65,7 @@ export const CalendarDay = ({ date, medias, size }: CalendarDayProps) => {
|
|||||||
>
|
>
|
||||||
<Popover.Target>
|
<Popover.Target>
|
||||||
<Container
|
<Container
|
||||||
onClick={medias.totalCount > 0 ? open : undefined}
|
onClick={medias.totalCount > 0 && !opened ? open : close}
|
||||||
h="100%"
|
h="100%"
|
||||||
w="100%"
|
w="100%"
|
||||||
sx={{
|
sx={{
|
||||||
|
|||||||
Reference in New Issue
Block a user