react-big-calendar
Advanced tools
Comparing version 0.24.1 to 0.24.2
@@ -99,2 +99,3 @@ "use strict"; | ||
var node = (0, _reactDom.findDOMNode)((0, _assertThisInitialized2.default)(_this)); | ||
var isBeingDragged = false; | ||
var selector = _this._selector = new _Selection.default(function () { | ||
@@ -135,6 +136,9 @@ return node.closest('.rbc-time-view'); | ||
selector.on('selectStart', function () { | ||
return _this.context.draggable.onStart(); | ||
isBeingDragged = true; | ||
_this.context.draggable.onStart(); | ||
}); | ||
selector.on('select', function (point) { | ||
var bounds = (0, _Selection.getBoundsForNode)(node); | ||
isBeingDragged = false; | ||
if (!_this.state.event || !pointInColumn(bounds, point)) return; | ||
@@ -145,3 +149,5 @@ | ||
selector.on('click', function () { | ||
return _this.context.draggable.onEnd(null); | ||
if (isBeingDragged) _this.reset(); | ||
_this.context.draggable.onEnd(null); | ||
}); | ||
@@ -148,0 +154,0 @@ selector.on('reset', function () { |
{ | ||
"name": "react-big-calendar", | ||
"version": "0.24.1", | ||
"version": "0.24.2", | ||
"description": "Calendar! with events", | ||
@@ -5,0 +5,0 @@ "author": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1133492
26283