diff --git a/CHANGELOG.md b/CHANGELOG.md index aa8ec526..b85fc1d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -60,6 +60,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p #### 🐛 Fixed - Fix `HaloLink` and visual authoring link path highlight being rendered on top on elements by placing it onto `overLinkGeometry` widget layer instead. +- Fix `HaloLink` link path highlighting not updating on link re-route. - Fix element template state not being restored when ungrouping entities. - Fix missing element decorations after re-importing the same diagram. - Fix `DraggableHandle` to avoid using stale `onDragHandle` and `onEndDragHandle` prop values. diff --git a/src/widgets/haloLink.tsx b/src/widgets/haloLink.tsx index a461e594..72ee6d0b 100644 --- a/src/widgets/haloLink.tsx +++ b/src/widgets/haloLink.tsx @@ -206,6 +206,11 @@ class HaloLinkInner extends React.Component { this.updateActionContext(); } }); + this.targetListener.listen(canvas.renderingState.events, 'changeRoutings', e => { + if (e.previous.get(link.id) !== e.source.getRouting(link.id)) { + this.updateActionContext(); + } + }); } }