Skip to content

Commit f4b18d6

Browse files
committed
[fixed] day view clicks return the correct slot
closes jquense#5
1 parent b96863b commit f4b18d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DaySlot.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,9 @@ let DaySlot = React.createClass({
234234
box => this.setState(selectionState(box)))
235235

236236
selector
237-
.on('click', () => {
237+
.on('click', ({ x, y }) => {
238238
this._clickTimer = setTimeout(()=> {
239-
this._selectSlot(this.state)
239+
this._selectSlot(selectionState({ x, y }))
240240
})
241241

242242
this.setState({ selecting: false })

0 commit comments

Comments
 (0)