Skip to content

Commit 0ca1eba

Browse files
authored
Fix: Click on More... opens wrong day view, it shoud open clicked day view
Fix: Click on More... from Month view opens wrong day view, it shoud open clicked day view. To reproduce, create enough events with `event.start < date < event.end` to see More... button on `date` cell. Then click on More... Currently, it will redirect to `event.start` day. It should redirect to `date` day. This patch resolves the issue.
1 parent 73ecd47 commit 0ca1eba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/components/events/MonthEvents.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const MonthEvents = ({
8888
style={{ top: topSpace, fontSize: 11 }}
8989
onClick={(e) => {
9090
e.stopPropagation();
91-
onViewMore(event.start);
91+
onViewMore(today);
9292
}}
9393
>
9494
{`${Math.abs(events.length - i)} ${translations.moreEvents}`}

0 commit comments

Comments
 (0)