From f4b18d64bd498188a272ffb593626ceea38f38f5 Mon Sep 17 00:00:00 2001 From: jquense Date: Thu, 12 Nov 2015 09:50:49 -0500 Subject: [PATCH] [fixed] day view clicks return the correct slot closes #5 --- src/DaySlot.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DaySlot.jsx b/src/DaySlot.jsx index cea493944..6ea857e98 100644 --- a/src/DaySlot.jsx +++ b/src/DaySlot.jsx @@ -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 })