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

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 1cc9fd1 commit 73e449d
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 73e449d

Please sign in to comment.