From 2407c256ffb8e7b5cfc198d082588253da406ee0 Mon Sep 17 00:00:00 2001 From: DanielDerma Date: Wed, 28 Dec 2022 19:05:46 -0600 Subject: [PATCH 1/2] fix the isInteractingWithItem variable --- src/lib/Timeline.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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( From b3361d0ba97ae8e3f23b82ec11c2e8aa96dd7bf4 Mon Sep 17 00:00:00 2001 From: DanielDerma Date: Wed, 28 Dec 2022 19:20:31 -0600 Subject: [PATCH 2/2] add CHANGELOG.md --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) 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