From fc33ebc45fa1eabb4af7029c7cc15a0919ddd43c Mon Sep 17 00:00:00 2001 From: Matthias Lehner Date: Thu, 9 May 2024 10:15:33 +0200 Subject: [PATCH] Hotfix selection box props being passed to SVG element --- src/main/components/uml-element/canvas-element.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/components/uml-element/canvas-element.tsx b/src/main/components/uml-element/canvas-element.tsx index a2fb3f91..5c58af8a 100644 --- a/src/main/components/uml-element/canvas-element.tsx +++ b/src/main/components/uml-element/canvas-element.tsx @@ -26,6 +26,7 @@ type StateProps = { interactable: boolean; element: IUMLElement; zoomFactor: number; + selectionBoxActive: boolean; }; type DispatchProps = {}; @@ -44,6 +45,7 @@ const enhance = compose>( interactable: state.editor.view === ApollonView.Exporting || state.editor.view === ApollonView.Highlight, element: state.elements[props.id], zoomFactor: state.editor.zoomFactor, + selectionBoxActive: state.editor.selectionBoxActive, }), {}, ), @@ -62,7 +64,8 @@ class CanvasElementComponent extends Component { child: ChildComponent, children, theme, - zoomFactor: _, + zoomFactor: _zoomFactor, + selectionBoxActive: _selectionBoxActive, ...props } = this.props;