Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
[fixed] allow event selection when selectable, in day views
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Oct 24, 2015
1 parent 1730c57 commit 57c8843
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/DaySlot.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,10 @@ let DaySlot = React.createClass({

selector
.on('click', () => {
this._selectSlot(this.state)
this._clickTimer = setTimeout(()=> {
this._selectSlot(this.state)
})

this.setState({ selecting: false })
})

Expand Down Expand Up @@ -249,6 +252,7 @@ let DaySlot = React.createClass({
},

_select(event){
clearTimeout(this._clickTimer);
notify(this.props.onSelectEvent, event)
}
});
Expand Down

0 comments on commit 57c8843

Please sign in to comment.