From 0c80fa6f7d2a4c3e946aa72a3973a1db73144886 Mon Sep 17 00:00:00 2001 From: Daiveek Naik Date: Thu, 4 Apr 2024 14:48:58 -0700 Subject: [PATCH] Modify show more for time grid --- src/TimeGrid.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/TimeGrid.js b/src/TimeGrid.js index d100d25af..c75eec87d 100644 --- a/src/TimeGrid.js +++ b/src/TimeGrid.js @@ -348,12 +348,19 @@ export default class TimeGrid extends Component { }) } - handleShowMore = (events, date) => { - const { onDrillDown, getDrilldownView } = this.props + handleShowMore = (events, date, cell, slot) => { + const { onDrillDown, onShowMore, getDrilldownView, onDayMore, view } = this.props //cancel any pending selections so only the event click goes through. - this.clearSelection(); + this.clearSelection() + + //Will this work + if (onDayMore) { + onDayMore(date, view); + return false; + } + notify(onDrillDown, [date, getDrilldownView(date) || views.DAY]) - notify(onDrillDown, [date, getDrilldownView(date) || views.DAY]); + notify(onShowMore, [events, date, slot]) } handleHeaderClick(date, view, e){