Skip to content

Commit 57c8843

Browse files
committed
[fixed] allow event selection when selectable, in day views
1 parent 1730c57 commit 57c8843

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/DaySlot.jsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,10 @@ let DaySlot = React.createClass({
215215

216216
selector
217217
.on('click', () => {
218-
this._selectSlot(this.state)
218+
this._clickTimer = setTimeout(()=> {
219+
this._selectSlot(this.state)
220+
})
221+
219222
this.setState({ selecting: false })
220223
})
221224

@@ -249,6 +252,7 @@ let DaySlot = React.createClass({
249252
},
250253

251254
_select(event){
255+
clearTimeout(this._clickTimer);
252256
notify(this.props.onSelectEvent, event)
253257
}
254258
});

0 commit comments

Comments
 (0)