diff --git a/CHANGELOG.md b/CHANGELOG.md index 03a23704b..fc3f0ff9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -607,6 +607,12 @@ 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 +* Fixed the isInteractingwithItem and is now working fine + + [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..6c51ed7a1 100644 --- a/src/lib/Timeline.js +++ b/src/lib/Timeline.js @@ -967,6 +967,7 @@ export default class ReactCalendarTimeline extends Component { visibleTimeEnd, canvasTimeStart, 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(