Skip to content

Commit

Permalink
[fixed] day view clicks return the correct slot
Browse files Browse the repository at this point in the history
closes #5
  • Loading branch information
jquense committed Nov 12, 2015
1 parent b96863b commit f4b18d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DaySlot.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ let DaySlot = React.createClass({
box => this.setState(selectionState(box)))

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

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

0 comments on commit f4b18d6

Please sign in to comment.