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){