From 98b3dade89fb49006c514bfc971f78618f85b835 Mon Sep 17 00:00:00 2001 From: jquense Date: Tue, 15 Sep 2015 11:32:59 +0300 Subject: [PATCH] [fixed] selecting events in All Day row of week/Day views --- src/TimeGrid.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/TimeGrid.jsx b/src/TimeGrid.jsx index 7b13ce73d..867bbe7c9 100644 --- a/src/TimeGrid.jsx +++ b/src/TimeGrid.jsx @@ -160,7 +160,7 @@ let TimeGrid = React.createClass({ startAccessor={this.props.startAccessor} endAccessor={this.props.endAccessor} allDayAccessor={this.props.allDayAccessor} - onEventClick={this.props.onEventClick} + onSelect={this._selectEvent} slots={this._slots} key={idx} segments={segs} @@ -189,6 +189,10 @@ let TimeGrid = React.createClass({ notify(this.props.onNavigate, [navigate.DATE, date]) }, + _selectEvent(...args){ + notify(this.props.onSelectEvent, args) + }, + _adjustGutter() { let header = this.refs.headerCell; let width = this._gutterWidth