From dec01ba48b3ecb5dc47615c60fdc9e0c79c7b91e Mon Sep 17 00:00:00 2001 From: Dmitry Yadrikhinsky Date: Thu, 7 Feb 2019 20:39:20 +0300 Subject: [PATCH] Fix show more callback --- src/Calendar.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Calendar.js b/src/Calendar.js index 72c7110e3..1504038ca 100644 --- a/src/Calendar.js +++ b/src/Calendar.js @@ -323,6 +323,15 @@ class Calendar extends React.Component { */ onSelecting: PropTypes.func, + /** + * Callback fired when a +{count} more is clicked + * + * ```js + * (events: Object, date: Date) => any + * ``` + */ + onShowMore: PropTypes.func, + /** * The selected event, if any. */ @@ -847,6 +856,7 @@ class Calendar extends React.Component { getNow, length, showMultiDayTimes, + onShowMore, components: _0, formats: _1, messages: _2, @@ -903,7 +913,7 @@ class Calendar extends React.Component { onSelectEvent={this.handleSelectEvent} onDoubleClickEvent={this.handleDoubleClickEvent} onSelectSlot={this.handleSelectSlot} - onShowMore={this._showMore} + onShowMore={onShowMore} /> )