From 57c8843ae5f76bc984aaf999da6b61931623f6ad Mon Sep 17 00:00:00 2001 From: Jason Quense Date: Sat, 24 Oct 2015 10:20:26 +0700 Subject: [PATCH] [fixed] allow event selection when selectable, in day views --- src/DaySlot.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/DaySlot.jsx b/src/DaySlot.jsx index 5a885c54d..724826a62 100644 --- a/src/DaySlot.jsx +++ b/src/DaySlot.jsx @@ -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 }) }) @@ -249,6 +252,7 @@ let DaySlot = React.createClass({ }, _select(event){ + clearTimeout(this._clickTimer); notify(this.props.onSelectEvent, event) } });