We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d2ea62 commit 98b3dadCopy full SHA for 98b3dad
1 file changed
src/TimeGrid.jsx
@@ -160,7 +160,7 @@ let TimeGrid = React.createClass({
160
startAccessor={this.props.startAccessor}
161
endAccessor={this.props.endAccessor}
162
allDayAccessor={this.props.allDayAccessor}
163
- onEventClick={this.props.onEventClick}
+ onSelect={this._selectEvent}
164
slots={this._slots}
165
key={idx}
166
segments={segs}
@@ -189,6 +189,10 @@ let TimeGrid = React.createClass({
189
notify(this.props.onNavigate, [navigate.DATE, date])
190
},
191
192
+ _selectEvent(...args){
193
+ notify(this.props.onSelectEvent, args)
194
+ },
195
+
196
_adjustGutter() {
197
let header = this.refs.headerCell;
198
let width = this._gutterWidth
0 commit comments