diff --git a/packages/neos-ui/src/Containers/LeftSideBar/NodeTree/index.js b/packages/neos-ui/src/Containers/LeftSideBar/NodeTree/index.js index 7450dd6ca1..29dc3e97cb 100644 --- a/packages/neos-ui/src/Containers/LeftSideBar/NodeTree/index.js +++ b/packages/neos-ui/src/Containers/LeftSideBar/NodeTree/index.js @@ -41,8 +41,8 @@ export default class NodeTree extends PureComponent { focus(contextPath); } - handleClick = src => { - const {setActiveContentCanvasSrc, requestScrollIntoView} = this.props; + handleClick = (src, contextPath) => { + const {setActiveContentCanvasSrc, setActiveContentCanvasContextPath, requestScrollIntoView} = this.props; // Set a flag that will imperatively tell ContentCanvas to scroll to focused node if (requestScrollIntoView) { requestScrollIntoView(true); @@ -50,6 +50,9 @@ export default class NodeTree extends PureComponent { if (setActiveContentCanvasSrc) { setActiveContentCanvasSrc(src); } + if (setActiveContentCanvasContextPath) { + setActiveContentCanvasContextPath(contextPath); + } } handleDrag = node => { @@ -104,6 +107,7 @@ export const PageTree = connect(state => ({ toggle: actions.UI.PageTree.toggle, focus: actions.UI.PageTree.focus, setActiveContentCanvasSrc: actions.UI.ContentCanvas.setSrc, + setActiveContentCanvasContextPath: actions.UI.ContentCanvas.setContextPath, moveNode: actions.CR.Nodes.move, requestScrollIntoView: null })(NodeTree);