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