diff --git a/CHANGELOG.md b/CHANGELOG.md index 03a23704b..5f5457a6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -607,6 +607,9 @@ Plenty of bugfixes, tests and new demos in these 0.14 patch releases. * Fix demo for IE11 #44 by @lucidlemon * Package a .css file, not a .scss file as previously done. @mariusandra +### fix +* fix the isInteractingWithItem variable + [0.9.0]: https://github.com/namespace-ee/react-calendar-timeline/compare/v0.8.6...v0.9.0 [0.10.0]: https://github.com/namespace-ee/react-calendar-timeline/compare/v0.9.0...v0.10.0 [0.10.1]: https://github.com/namespace-ee/react-calendar-timeline/compare/v0.10.0...v0.10.1 diff --git a/src/lib/Timeline.js b/src/lib/Timeline.js index c77ba2f35..8d92c1456 100644 --- a/src/lib/Timeline.js +++ b/src/lib/Timeline.js @@ -966,7 +966,8 @@ export default class ReactCalendarTimeline extends Component { visibleTimeStart, visibleTimeEnd, canvasTimeStart, - canvasTimeEnd + canvasTimeEnd, + selectedItem } = this.state let { dimensionItems, height, groupHeights, groupTops } = this.state @@ -974,7 +975,7 @@ export default class ReactCalendarTimeline extends Component { const canvasWidth = getCanvasWidth(width, buffer) const minUnit = getMinUnit(zoom, width, timeSteps) - const isInteractingWithItem = !!draggingItem || !!resizingItem + const isInteractingWithItem = !!draggingItem || !!resizingItem || !!selectedItem if (isInteractingWithItem) { const stackResults = stackTimelineItems(